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

Method labelFontColorChanged

src/frontend/widgets/LabelWidget.cpp:1247–1254  ·  view source on GitHub ↗

this function is only called when the theme is changed. Otherwise the color is coded in the html text. when the theme changes, the whole text should change color regardless of the color it has

Source from the content-addressed store, hash-verified

1245// this function is only called when the theme is changed. Otherwise the color is coded in the html text.
1246// when the theme changes, the whole text should change color regardless of the color it has
1247void LabelWidget::labelFontColorChanged(const QColor& color) {
1248 Q_EMIT labelFontColorChangedSignal(color);
1249
1250 CONDITIONAL_LOCK_RETURN;
1251 ui.kcbFontColor->setColor(color);
1252 ui.teLabel->selectAll();
1253 ui.teLabel->setTextColor(color);
1254}
1255
1256void LabelWidget::labelPositionChanged(const TextLabel::PositionWrapper& position) {
1257 CONDITIONAL_LOCK_RETURN;

Callers 1

colorChangedMethod · 0.80

Calls 3

setTextColorMethod · 0.80
setColorMethod · 0.45
selectAllMethod · 0.45

Tested by

no test coverage detected