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

Method saveConfigAsTemplate

src/frontend/dockwidgets/RunChartDock.cpp:236–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void RunChartDock::saveConfigAsTemplate(KConfig& config) {
237 KConfigGroup group = config.group(QStringLiteral("RunChart"));
238
239 // general
240 group.writeEntry(QStringLiteral("CenterMetric"), static_cast<int>(m_plot->centerMetric()));
241
242 // properties of the data and center curves
243 dataLineWidget->saveConfig(group);
244 dataSymbolWidget->saveConfig(group);
245 centerLineWidget->saveConfig(group);
246 config.sync();
247}

Callers

nothing calls this directly

Calls 2

groupMethod · 0.45
saveConfigMethod · 0.45

Tested by

no test coverage detected