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

Method loadConfigFromTemplate

src/frontend/dockwidgets/RunChartDock.cpp:223–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void RunChartDock::loadConfigFromTemplate(KConfig& config) {
224 auto name = TemplateHandler::templateName(config);
225 int size = m_plots.size();
226 if (size > 1)
227 m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name));
228 else
229 m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name));
230
231 this->loadConfig(config);
232
233 m_plot->endMacro();
234}
235
236void RunChartDock::saveConfigAsTemplate(KConfig& config) {
237 KConfigGroup group = config.group(QStringLiteral("RunChart"));

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