SETTINGS
| 416 | //******************** SETTINGS **************************** |
| 417 | //********************************************************** |
| 418 | void ErrorBarWidget::load() { |
| 419 | if (m_errorBar->dimension() == ErrorBar::Dimension::XY) { |
| 420 | ui.cbXErrorType->setCurrentIndex(static_cast<int>(m_errorBar->xErrorType())); |
| 421 | xErrorTypeChanged(ui.cbXErrorType->currentIndex()); |
| 422 | } |
| 423 | |
| 424 | ui.cbYErrorType->setCurrentIndex(static_cast<int>(m_errorBar->yErrorType())); |
| 425 | yErrorTypeChanged(ui.cbYErrorType->currentIndex()); |
| 426 | |
| 427 | ui.cbType->setCurrentIndex(static_cast<int>(m_errorBar->type())); |
| 428 | typeChanged(ui.cbType->currentIndex()); |
| 429 | |
| 430 | const double size = Worksheet::convertFromSceneUnits(m_errorBar->capSize(), Worksheet::Unit::Point); |
| 431 | ui.sbCapSize->setValue(size); |
| 432 | } |
| 433 | |
| 434 | void ErrorBarWidget::loadConfig(const KConfigGroup& group) { |
| 435 | switch (m_errorBar->dimension()) { |
nothing calls this directly
no test coverage detected