| 727 | } |
| 728 | |
| 729 | void 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 | |
| 742 | void BoxPlotDock::saveConfigAsTemplate(KConfig& config) { |
| 743 | KConfigGroup group = config.group(QStringLiteral("BoxPlot")); |
nothing calls this directly
no test coverage detected