| 690 | } |
| 691 | |
| 692 | void ProcessBehaviorChartDock::saveConfigAsTemplate(KConfig& config) { |
| 693 | KConfigGroup group = config.group(QStringLiteral("ProcessBehaviorChart")); |
| 694 | |
| 695 | // general |
| 696 | group.writeEntry(QStringLiteral("Type"), static_cast<int>(m_plot->type())); |
| 697 | group.writeEntry(QStringLiteral("LimitsMetric"), static_cast<int>(m_plot->limitsMetric())); |
| 698 | group.writeEntry(QStringLiteral("SampleSize"), m_plot->sampleSize()); |
| 699 | // TODO: limit constraints? |
| 700 | group.writeEntry(QStringLiteral("ExactLimitsEnabled"), m_plot->exactLimitsEnabled()); |
| 701 | |
| 702 | // properties of the data and limit curves |
| 703 | dataLineWidget->saveConfig(group); |
| 704 | dataSymbolWidget->saveConfig(group); |
| 705 | centerLineWidget->saveConfig(group); |
| 706 | upperLimitLineWidget->saveConfig(group); |
| 707 | if (m_plot->lowerLimitAvailable()) |
| 708 | lowerLimitLineWidget->saveConfig(group); |
| 709 | config.sync(); |
| 710 | } |
nothing calls this directly
no test coverage detected