| 132 | } |
| 133 | |
| 134 | void 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 | |
| 156 | void SettingsGeneralPage::loadSettings() { |
| 157 | const auto group = Settings::settingsGeneral(); |
nothing calls this directly
no test coverage detected