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

Method load

src/frontend/widgets/ErrorBarWidget.cpp:418–432  ·  view source on GitHub ↗

SETTINGS

Source from the content-addressed store, hash-verified

416//******************** SETTINGS ****************************
417//**********************************************************
418void 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
434void ErrorBarWidget::loadConfig(const KConfigGroup& group) {
435 switch (m_errorBar->dimension()) {

Callers

nothing calls this directly

Calls 5

dimensionMethod · 0.45
setCurrentIndexMethod · 0.45
currentIndexMethod · 0.45
typeMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected