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

Method fillingStyleChanged

src/frontend/widgets/SymbolWidget.cpp:173–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void 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
190void SymbolWidget::fillingColorChanged(const QColor& color) {
191 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 3

setBrushMethod · 0.80
setEnabledMethod · 0.45
setStyleMethod · 0.45

Tested by

no test coverage detected