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

Method errorBarFillingStyleChanged

src/frontend/widgets/DatapickerCurveWidget.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void DatapickerCurveWidget::errorBarFillingStyleChanged(int index) {
160 auto brushStyle = Qt::BrushStyle(index);
161 ui.kcbErrorBarFillingColor->setEnabled(!(brushStyle == Qt::NoBrush));
162
163 CONDITIONAL_LOCK_RETURN;
164
165 QBrush brush;
166 for (auto* curve : m_curveList) {
167 brush = curve->pointErrorBarBrush();
168 brush.setStyle(brushStyle);
169 curve->setPointErrorBarBrush(brush);
170 }
171}
172
173void DatapickerCurveWidget::errorBarFillingColorChanged(const QColor& color) {
174 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 3

setPointErrorBarBrushMethod · 0.80
setEnabledMethod · 0.45
setStyleMethod · 0.45

Tested by

no test coverage detected