styling
| 349 | |
| 350 | // styling |
| 351 | void 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 | |
| 362 | void ErrorBarWidget::capSizeChanged(double value) { |
| 363 | CONDITIONAL_RETURN_NO_LOCK; |
nothing calls this directly
no test coverage detected