| 278 | } |
| 279 | |
| 280 | void QQPlotDock::loadConfigFromTemplate(KConfig& config) { |
| 281 | auto name = TemplateHandler::templateName(config); |
| 282 | int size = m_plots.size(); |
| 283 | if (size > 1) |
| 284 | m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name)); |
| 285 | else |
| 286 | m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name)); |
| 287 | |
| 288 | this->loadConfig(config); |
| 289 | |
| 290 | m_plot->endMacro(); |
| 291 | } |
| 292 | |
| 293 | void QQPlotDock::saveConfigAsTemplate(KConfig& config) { |
| 294 | KConfigGroup group = config.group(QStringLiteral("QQPlot")); |
nothing calls this directly
no test coverage detected