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

Method loadConfigFromTemplate

src/frontend/dockwidgets/StatisticsSpreadsheetDock.cpp:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void StatisticsSpreadsheetDock::loadConfigFromTemplate(KConfig& config) {
168 KConfigGroup group = config.group(QLatin1String("StatisticsSpreadsheet"));
169
170 auto metrics = static_cast<StatisticsSpreadsheet::Metrics>(group.readEntry(QStringLiteral("Metrics"), static_cast<int>(m_spreadsheet->metrics())));
171 m_spreadsheet->setMetrics(metrics);
172 load();
173}
174
175/*!
176 saves spreadsheet properties to \c config.

Callers

nothing calls this directly

Calls 3

metricsMethod · 0.80
setMetricsMethod · 0.80
groupMethod · 0.45

Tested by

no test coverage detected