| 795 | } |
| 796 | |
| 797 | void CartesianPlotLegendDock::loadConfigFromTemplate(KConfig& config) { |
| 798 | auto name = TemplateHandler::templateName(config); |
| 799 | int size = m_legendList.size(); |
| 800 | if (size > 1) |
| 801 | m_legend->beginMacro(i18n("%1 cartesian plot legends: template \"%2\" loaded", size, name)); |
| 802 | else |
| 803 | m_legend->beginMacro(i18n("%1: template \"%2\" loaded", m_legend->name(), name)); |
| 804 | |
| 805 | this->loadConfig(config); |
| 806 | |
| 807 | m_legend->endMacro(); |
| 808 | } |
| 809 | |
| 810 | void CartesianPlotLegendDock::loadConfig(KConfig& config) { |
| 811 | KConfigGroup group = config.group(QStringLiteral("CartesianPlotLegend")); |
nothing calls this directly
no test coverage detected