| 162 | } |
| 163 | |
| 164 | void BackgroundWidget::positionChanged(int index) { |
| 165 | if (!m_background || !m_background->positionAvailable()) |
| 166 | return; |
| 167 | |
| 168 | const auto position{Background::Position(index)}; |
| 169 | bool b = (position != Background::Position::No); |
| 170 | setEnabled(b); // call this to enable/disable the properties widget depending on the position value |
| 171 | ui.cbPosition->setEnabled(true); // and enable position only |
| 172 | |
| 173 | CONDITIONAL_LOCK_RETURN; |
| 174 | for (auto* background : m_backgrounds) |
| 175 | background->setPosition(position); |
| 176 | } |
| 177 | |
| 178 | void BackgroundWidget::typeChanged(int index) { |
| 179 | if (index == -1) |
nothing calls this directly
no test coverage detected