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

Method fontColorChanged

src/frontend/widgets/LabelWidget.cpp:726–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void LabelWidget::fontColorChanged(const QColor& color) {
727 CONDITIONAL_LOCK_RETURN;
728
729 const auto mode = m_label->text().mode;
730 if (mode == TextLabel::Mode::Text || (mode == TextLabel::Mode::LaTeX && !m_teXEnabled)) {
731 SETLABELTEXTPROPERTY(setTextColor, color);
732 if (!cursorHasSelection) {
733 for (auto* label : m_labelsList)
734 label->setFontColor(color);
735 }
736 } else { // LaTeX (enabled) or Markup mode
737 for (auto* label : m_labelsList)
738 label->setFontColor(color);
739 }
740}
741
742void LabelWidget::backgroundColorChanged(const QColor& color) {
743 QDEBUG(Q_FUNC_INFO << ", color = " << color)

Callers 4

colorChangedMethod · 0.80

Calls 2

textMethod · 0.45
setFontColorMethod · 0.45