Settings
| 207 | //************************* Settings ************************** |
| 208 | //************************************************************* |
| 209 | void RunChartDock::loadConfig(KConfig& config) { |
| 210 | KConfigGroup group = config.group(QStringLiteral("RunChart")); |
| 211 | |
| 212 | // center metric |
| 213 | const auto metric = group.readEntry(QStringLiteral("CenterMetric"), static_cast<int>(m_plot->centerMetric())); |
| 214 | const int index = ui.cbCenterMetric->findData(static_cast<int>(metric)); |
| 215 | ui.cbCenterMetric->setCurrentIndex(index); |
| 216 | |
| 217 | // properties of the reference and percentile curves |
| 218 | dataLineWidget->loadConfig(group); |
| 219 | dataSymbolWidget->loadConfig(group); |
| 220 | centerLineWidget->loadConfig(group); |
| 221 | } |
| 222 | |
| 223 | void RunChartDock::loadConfigFromTemplate(KConfig& config) { |
| 224 | auto name = TemplateHandler::templateName(config); |
no test coverage detected