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

Method loadConfigFromTemplate

src/frontend/dockwidgets/BoxPlotDock.cpp:729–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729void BoxPlotDock::loadConfigFromTemplate(KConfig& config) {
730 auto name = TemplateHandler::templateName(config);
731 int size = m_boxPlots.size();
732 if (size > 1)
733 m_boxPlot->beginMacro(i18n("%1 box plots: template \"%2\" loaded", size, name));
734 else
735 m_boxPlot->beginMacro(i18n("%1: template \"%2\" loaded", m_boxPlot->name(), name));
736
737 this->loadConfig(config);
738
739 m_boxPlot->endMacro();
740}
741
742void BoxPlotDock::saveConfigAsTemplate(KConfig& config) {
743 KConfigGroup group = config.group(QStringLiteral("BoxPlot"));

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