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

Method enabledChanged

src/frontend/widgets/BackgroundWidget.cpp:147–162  ·  view source on GitHub ↗

SLOTs for changes triggered in BackgroundWidget

Source from the content-addressed store, hash-verified

145//******** SLOTs for changes triggered in BackgroundWidget ****
146//*************************************************************
147void BackgroundWidget::enabledChanged(bool state) {
148 ui.cbType->setEnabled(state);
149 ui.cbColorStyle->setEnabled(state);
150 ui.cbBrushStyle->setEnabled(state);
151 ui.cbImageStyle->setEnabled(state);
152 ui.kcbFirstColor->setEnabled(state);
153 ui.kcbSecondColor->setEnabled(state);
154 ui.leFileName->setEnabled(state);
155 ui.bOpen->setEnabled(state);
156 ui.sbOpacity->setEnabled(state);
157
158 CONDITIONAL_LOCK_RETURN;
159
160 for (auto* background : m_backgrounds)
161 background->setEnabled(state);
162}
163
164void BackgroundWidget::positionChanged(int index) {
165 if (!m_background || !m_background->positionAvailable())

Callers

nothing calls this directly

Calls 1

setEnabledMethod · 0.45

Tested by

no test coverage detected