| 171 | } |
| 172 | |
| 173 | void SymbolWidget::fillingStyleChanged(int index) { |
| 174 | if (index == -1) |
| 175 | return; |
| 176 | |
| 177 | const auto brushStyle = Qt::BrushStyle(index); |
| 178 | ui.kcbFillingColor->setEnabled(!(brushStyle == Qt::NoBrush)); |
| 179 | |
| 180 | CONDITIONAL_LOCK_RETURN; |
| 181 | |
| 182 | QBrush brush; |
| 183 | for (auto* symbol : m_symbols) { |
| 184 | brush = symbol->brush(); |
| 185 | brush.setStyle(brushStyle); |
| 186 | symbol->setBrush(brush); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | void SymbolWidget::fillingColorChanged(const QColor& color) { |
| 191 | CONDITIONAL_LOCK_RETURN; |
nothing calls this directly
no test coverage detected