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

Method loadConfigFromTemplate

src/frontend/dockwidgets/CartesianPlotLegendDock.cpp:797–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797void CartesianPlotLegendDock::loadConfigFromTemplate(KConfig& config) {
798 auto name = TemplateHandler::templateName(config);
799 int size = m_legendList.size();
800 if (size > 1)
801 m_legend->beginMacro(i18n("%1 cartesian plot legends: template \"%2\" loaded", size, name));
802 else
803 m_legend->beginMacro(i18n("%1: template \"%2\" loaded", m_legend->name(), name));
804
805 this->loadConfig(config);
806
807 m_legend->endMacro();
808}
809
810void CartesianPlotLegendDock::loadConfig(KConfig& config) {
811 KConfigGroup group = config.group(QStringLiteral("CartesianPlotLegend"));

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