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

Method loadConfig

src/frontend/dockwidgets/RunChartDock.cpp:209–221  ·  view source on GitHub ↗

Settings

Source from the content-addressed store, hash-verified

207//************************* Settings **************************
208//*************************************************************
209void RunChartDock::loadConfig(KConfig& config) {
210 KConfigGroup group = config.group(QStringLiteral("RunChart"));
211
212 // center metric
213 const auto metric = group.readEntry(QStringLiteral("CenterMetric"), static_cast<int>(m_plot->centerMetric()));
214 const int index = ui.cbCenterMetric->findData(static_cast<int>(metric));
215 ui.cbCenterMetric->setCurrentIndex(index);
216
217 // properties of the reference and percentile curves
218 dataLineWidget->loadConfig(group);
219 dataSymbolWidget->loadConfig(group);
220 centerLineWidget->loadConfig(group);
221}
222
223void RunChartDock::loadConfigFromTemplate(KConfig& config) {
224 auto name = TemplateHandler::templateName(config);

Callers 1

Calls 2

groupMethod · 0.45
setCurrentIndexMethod · 0.45

Tested by

no test coverage detected