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

Method loadConfigFromTemplate

src/frontend/dockwidgets/BarPlotDock.cpp:503–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void BarPlotDock::loadConfigFromTemplate(KConfig& config) {
504 auto name = TemplateHandler::templateName(config);
505 int size = m_barPlots.size();
506 if (size > 1)
507 m_barPlot->beginMacro(i18n("%1 bar plots: template \"%2\" loaded", size, name));
508 else
509 m_barPlot->beginMacro(i18n("%1: template \"%2\" loaded", m_barPlot->name(), name));
510
511 this->loadConfig(config);
512
513 m_barPlot->endMacro();
514}
515
516void BarPlotDock::saveConfigAsTemplate(KConfig& config) {
517 KConfigGroup group = config.group(QStringLiteral("BarPlot"));

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