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

Method applySettings

src/frontend/SettingsDialog.cpp:163–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void SettingsDialog::applySettings() {
164 m_changed = false;
165 QList<Settings::Type> changes;
166 changes << m_generalPage->applySettings();
167 changes << m_worksheetPage->applySettings();
168 changes << m_spreadsheetPage->applySettings();
169#ifdef HAVE_CANTOR_LIBS
170 changes << m_notebookPage->applySettings();
171#endif
172 changes << m_datasetsPage->applySettings();
173
174 Settings::sync();
175
176#ifdef HAVE_KUSERFEEDBACK
177 auto* mainWin = static_cast<MainWin*>(parent());
178 mainWin->userFeedbackProvider().setTelemetryMode(m_userFeedbackWidget->telemetryMode());
179 mainWin->userFeedbackProvider().setSurveyInterval(m_userFeedbackWidget->surveyInterval());
180#endif
181
182 if (!changes.isEmpty())
183 Q_EMIT settingsChanged(changes);
184}
185
186void SettingsDialog::restoreDefaults() {
187 m_changed = false;

Callers

nothing calls this directly

Calls 2

syncFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected