MCPcopy Create free account
hub / github.com/KDE/labplot / saveConfigAsTemplate

Method saveConfigAsTemplate

src/frontend/dockwidgets/ProcessBehaviorChartDock.cpp:692–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692void 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}

Callers

nothing calls this directly

Calls 5

lowerLimitAvailableMethod · 0.80
groupMethod · 0.45
typeMethod · 0.45
sampleSizeMethod · 0.45
saveConfigMethod · 0.45

Tested by

no test coverage detected