SLOTs for changes triggered in BackgroundWidget
| 145 | //******** SLOTs for changes triggered in BackgroundWidget **** |
| 146 | //************************************************************* |
| 147 | void 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 | |
| 164 | void BackgroundWidget::positionChanged(int index) { |
| 165 | if (!m_background || !m_background->positionAvailable()) |
nothing calls this directly
no test coverage detected