void StartupSettingsPage::restoreDefaults() { GeneralSettings* settings = GeneralSettings::self(); settings->useDefaults(true); loadSettings(); settings->useDefaults(false); }
void BehaviorSettingsPage::restoreDefaults() { GeneralSettings* settings = DolphinSettings::instance().generalSettings(); settings->useDefaults(true); loadSettings(); settings->useDefaults(false); m_confirmMoveToTrash->setChecked(CONFIRM_TRASH); m_confirmDelete->setChecked(CONFIRM_DELETE); }
void ConfirmationsSettingsPage::restoreDefaults() { GeneralSettings* settings = GeneralSettings::self(); settings->useDefaults(true); loadSettings(); settings->useDefaults(false); m_confirmMoveToTrash->setChecked(ConfirmTrash); m_confirmDelete->setChecked(ConfirmDelete); }
void NavigationSettingsPage::restoreDefaults() { GeneralSettings* settings = GeneralSettings::self(); settings->useDefaults(true); loadSettings(); settings->useDefaults(false); // The mouse settings stored in KGlobalSettings must be reset to // the default values (= single click) manually. m_singleClick->setChecked(true); m_doubleClick->setChecked(false); }