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

Method loadConfigFromTemplate

src/frontend/dockwidgets/QQPlotDock.cpp:280–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void QQPlotDock::loadConfigFromTemplate(KConfig& config) {
281 auto name = TemplateHandler::templateName(config);
282 int size = m_plots.size();
283 if (size > 1)
284 m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name));
285 else
286 m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name));
287
288 this->loadConfig(config);
289
290 m_plot->endMacro();
291}
292
293void QQPlotDock::saveConfigAsTemplate(KConfig& config) {
294 KConfigGroup group = config.group(QStringLiteral("QQPlot"));

Callers

nothing calls this directly

Calls 5

loadConfigMethod · 0.95
beginMacroMethod · 0.80
endMacroMethod · 0.80
sizeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected