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

Method loadConfigFromTemplate

src/frontend/dockwidgets/ProcessBehaviorChartDock.cpp:679–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679void ProcessBehaviorChartDock::loadConfigFromTemplate(KConfig& config) {
680 auto name = TemplateHandler::templateName(config);
681 int size = m_plots.size();
682 if (size > 1)
683 m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name));
684 else
685 m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name));
686
687 this->loadConfig(config);
688
689 m_plot->endMacro();
690}
691
692void ProcessBehaviorChartDock::saveConfigAsTemplate(KConfig& config) {
693 KConfigGroup group = config.group(QStringLiteral("ProcessBehaviorChart"));

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