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

Method typeChanged

src/frontend/widgets/ErrorBarWidget.cpp:351–360  ·  view source on GitHub ↗

styling

Source from the content-addressed store, hash-verified

349
350// styling
351void ErrorBarWidget::typeChanged(int) {
352 const auto type = static_cast<ErrorBar::Type>(ui.cbType->currentData().toInt());
353 const bool b = (type == ErrorBar::Type::WithEnds);
354 ui.lCapSize->setVisible(b);
355 ui.sbCapSize->setVisible(b);
356
357 CONDITIONAL_RETURN_NO_LOCK;
358 for (auto* errorBar : m_errorBars)
359 errorBar->setType(type);
360}
361
362void ErrorBarWidget::capSizeChanged(double value) {
363 CONDITIONAL_RETURN_NO_LOCK;

Callers

nothing calls this directly

Calls 2

setVisibleMethod · 0.45
setTypeMethod · 0.45

Tested by

no test coverage detected