| 740 | } |
| 741 | |
| 742 | void LabelWidget::backgroundColorChanged(const QColor& color) { |
| 743 | QDEBUG(Q_FUNC_INFO << ", color = " << color) |
| 744 | CONDITIONAL_LOCK_RETURN; |
| 745 | |
| 746 | const auto mode = m_label->text().mode; |
| 747 | if (mode == TextLabel::Mode::Text || (mode == TextLabel::Mode::LaTeX && !m_teXEnabled)) { |
| 748 | SETLABELTEXTPROPERTY(setTextBackgroundColor, color); |
| 749 | } else { // LaTeX (enabled) or Markup mode |
| 750 | // Latex text does not support html code. For this the backgroundColor variable is used |
| 751 | // Only single color background is supported |
| 752 | for (auto* label : m_labelsList) |
| 753 | label->setBackgroundColor(color); |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | void LabelWidget::fontSizeChanged(int value) { |
| 758 | CONDITIONAL_LOCK_RETURN; |