| 677 | } |
| 678 | |
| 679 | void ProcessBehaviorChartDock::loadConfigFromTemplate(KConfig& config) { |
| 680 | auto name = TemplateHandler::templateName(config); |
| 681 | int size = m_plots.size(); |
| 682 | if (size > 1) |
| 683 | m_plot->beginMacro(i18n("%1 xy-curves: template \"%2\" loaded", size, name)); |
| 684 | else |
| 685 | m_plot->beginMacro(i18n("%1: template \"%2\" loaded", m_plot->name(), name)); |
| 686 | |
| 687 | this->loadConfig(config); |
| 688 | |
| 689 | m_plot->endMacro(); |
| 690 | } |
| 691 | |
| 692 | void ProcessBehaviorChartDock::saveConfigAsTemplate(KConfig& config) { |
| 693 | KConfigGroup group = config.group(QStringLiteral("ProcessBehaviorChart")); |
nothing calls this directly
no test coverage detected