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

Method xErrorTypeChanged

src/frontend/widgets/DatapickerCurveWidget.cpp:116–132  ·  view source on GitHub ↗

SLOTs for changes triggered in DatapickerCurveWidget "General"-tab

Source from the content-addressed store, hash-verified

114//*************************************************************
115//"General"-tab
116void DatapickerCurveWidget::xErrorTypeChanged(int index) {
117 if (DatapickerCurve::ErrorType(index) != DatapickerCurve::ErrorType::NoError || m_curve->curveErrorTypes().y != DatapickerCurve::ErrorType::NoError)
118 hideErrorBarWidgets(false);
119 else
120 hideErrorBarWidgets(true);
121
122 if (m_suppressTypeChange)
123 return;
124
125 CONDITIONAL_LOCK_RETURN;
126
127 DatapickerCurve::Errors errors = m_curve->curveErrorTypes();
128 errors.x = DatapickerCurve::ErrorType(index);
129
130 for (auto* curve : m_curveList)
131 curve->setCurveErrorTypes(errors);
132}
133
134void DatapickerCurveWidget::yErrorTypeChanged(int index) {
135 if (DatapickerCurve::ErrorType(index) != DatapickerCurve::ErrorType::NoError || m_curve->curveErrorTypes().x != DatapickerCurve::ErrorType::NoError)

Callers

nothing calls this directly

Calls 2

setCurveErrorTypesMethod · 0.80
ErrorTypeEnum · 0.50

Tested by

no test coverage detected