| 501 | } |
| 502 | |
| 503 | void 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 | |
| 516 | void BarPlotDock::saveConfigAsTemplate(KConfig& config) { |
| 517 | KConfigGroup group = config.group(QStringLiteral("BarPlot")); |
nothing calls this directly
no test coverage detected