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

Method restoreDefaults

src/frontend/SettingsGeneralPage.cpp:134–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void SettingsGeneralPage::restoreDefaults() {
135 ui.cbLoadOnStart->setCurrentIndex(ui.cbLoadOnStart->findData(static_cast<int>(MainWin::LoadOnStart::NewProject)));
136 ui.cbNewProject->setCurrentIndex(ui.cbNewProject->findData(static_cast<int>(MainWin::NewProject::WithSpreadsheet)));
137 ui.cbTitleBar->setCurrentIndex(0);
138 ui.cbUnits->setCurrentIndex(0);
139 ui.cbNumberFormat->setCurrentIndex(ui.cbNumberFormat->findData(static_cast<int>(QLocale::AnyLanguage)));
140 ui.chkGUMTerms->setChecked(false);
141 ui.chkOmitGroupSeparator->setChecked(true);
142 ui.chkOmitLeadingZeroInExponent->setChecked(true);
143 ui.chkIncludeTrailingZeroesAfterDot->setChecked(false);
144 ui.chkUseHyphen->setChecked(false);
145 ui.chkAutoSave->setChecked(false);
146 ui.sbAutoSaveInterval->setValue(5);
147 ui.chkSaveDockStates->setChecked(false);
148 ui.chkSaveCalculations->setChecked(true);
149 ui.chkCompatible->setChecked(false);
150 ui.chkInfoTrace->setChecked(false);
151 ui.chkDebugTrace->setChecked(false);
152 ui.chkPerfTrace->setChecked(false);
153 ui.cbDockWindowPositionReopen->setCurrentIndex(ui.cbDockWindowPositionReopen->findData(static_cast<int>(Settings::DockPosBehavior::AboveLastActive)));
154}
155
156void SettingsGeneralPage::loadSettings() {
157 const auto group = Settings::settingsGeneral();

Callers

nothing calls this directly

Calls 2

setCurrentIndexMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected