| 367 | } |
| 368 | |
| 369 | void KDEPlotDock::loadConfigFromTemplate(KConfig& config) { |
| 370 | auto name = TemplateHandler::templateName(config); |
| 371 | int size = m_plots.size(); |
| 372 | if (size > 1) |
| 373 | m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name)); |
| 374 | else |
| 375 | m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name)); |
| 376 | |
| 377 | this->loadConfig(config); |
| 378 | |
| 379 | m_plot->endMacro(); |
| 380 | } |
| 381 | |
| 382 | void KDEPlotDock::saveConfigAsTemplate(KConfig& config) { |
| 383 | KConfigGroup group = config.group(QStringLiteral("KDEPlot")); |
nothing calls this directly
no test coverage detected