| 201 | } |
| 202 | |
| 203 | void SymbolWidget::borderStyleChanged(int index) { |
| 204 | if (index == -1) |
| 205 | return; |
| 206 | |
| 207 | const auto penStyle = Qt::PenStyle(index); |
| 208 | if (penStyle == Qt::NoPen) { |
| 209 | ui.kcbBorderColor->setEnabled(false); |
| 210 | ui.sbBorderWidth->setEnabled(false); |
| 211 | } else { |
| 212 | ui.kcbBorderColor->setEnabled(true); |
| 213 | ui.sbBorderWidth->setEnabled(true); |
| 214 | } |
| 215 | |
| 216 | CONDITIONAL_LOCK_RETURN; |
| 217 | |
| 218 | QPen pen; |
| 219 | for (auto* symbol : m_symbols) { |
| 220 | pen = symbol->pen(); |
| 221 | pen.setStyle(penStyle); |
| 222 | symbol->setPen(pen); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | void SymbolWidget::borderColorChanged(const QColor& color) { |
| 227 | CONDITIONAL_LOCK_RETURN; |
nothing calls this directly
no test coverage detected