| 221 | } |
| 222 | |
| 223 | void RunChartDock::loadConfigFromTemplate(KConfig& config) { |
| 224 | auto name = TemplateHandler::templateName(config); |
| 225 | int size = m_plots.size(); |
| 226 | if (size > 1) |
| 227 | m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name)); |
| 228 | else |
| 229 | m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name)); |
| 230 | |
| 231 | this->loadConfig(config); |
| 232 | |
| 233 | m_plot->endMacro(); |
| 234 | } |
| 235 | |
| 236 | void RunChartDock::saveConfigAsTemplate(KConfig& config) { |
| 237 | KConfigGroup group = config.group(QStringLiteral("RunChart")); |
nothing calls this directly
no test coverage detected