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

Method loadConfig

src/frontend/dockwidgets/QQPlotDock.cpp:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void QQPlotDock::loadConfig(KConfig& config) {
268 KConfigGroup group = config.group(QStringLiteral("QQPlot"));
269
270 // distribution
271 auto dist = group.readEntry(QStringLiteral("distribution"), static_cast<int>(m_plot->distribution()));
272 int index = ui.cbDistribution->findData(static_cast<int>(dist));
273 ui.cbDistribution->setCurrentIndex(index);
274
275 // properties of the reference and percentile curves
276 lineWidget->loadConfig(group);
277 symbolWidget->loadConfig(group);
278}
279
280void QQPlotDock::loadConfigFromTemplate(KConfig& config) {
281 auto name = TemplateHandler::templateName(config);

Callers 1

Calls 2

groupMethod · 0.45
setCurrentIndexMethod · 0.45

Tested by

no test coverage detected