MCPcopy Create free account
hub / github.com/KDE/labplot / backgroundColorChanged

Method backgroundColorChanged

src/frontend/widgets/LabelWidget.cpp:742–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742void 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
757void LabelWidget::fontSizeChanged(int value) {
758 CONDITIONAL_LOCK_RETURN;

Calls 2

textMethod · 0.45
setBackgroundColorMethod · 0.45