mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-21 17:30:15 +00:00
use save() instead of writeConfig()
This commit is contained in:
parent
8d7c1a6678
commit
b5fc036999
|
@ -35,7 +35,7 @@ void PlacesView::setIconSize(int size)
|
|||
if (size != iconSize()) {
|
||||
PlacesPanelSettings* settings = PlacesPanelSettings::self();
|
||||
settings->setIconSize(size);
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
|
||||
KItemListStyleOption option = styleOption();
|
||||
option.iconSize = size;
|
||||
|
|
|
@ -135,7 +135,7 @@ void DolphinSettingsDialog::applySettings()
|
|||
// Reset the modified startup settings hint. The changed startup settings
|
||||
// have been applied already due to emitting settingsChanged().
|
||||
settings->setModifiedStartupSettings(false);
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
}
|
||||
buttonBox()->button(QDialogButtonBox::Apply)->setEnabled(false);
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ void BehaviorSettingsPage::applySettings()
|
|||
settings->setShowToolTips(m_showToolTips->isChecked());
|
||||
settings->setShowSelectionToggle(m_showSelectionToggle->isChecked());
|
||||
settings->setRenameInline(m_renameInline->isChecked());
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
|
||||
if (useGlobalViewProps) {
|
||||
// Remember the global view properties by applying the current view properties.
|
||||
|
|
|
@ -98,7 +98,7 @@ void ConfirmationsSettingsPage::applySettings()
|
|||
|
||||
GeneralSettings* settings = GeneralSettings::self();
|
||||
settings->setConfirmClosingMultipleTabs(m_confirmClosingMultipleTabs->isChecked());
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
}
|
||||
|
||||
void ConfirmationsSettingsPage::restoreDefaults()
|
||||
|
|
|
@ -56,7 +56,7 @@ void StatusBarSettingsPage::applySettings()
|
|||
GeneralSettings* settings = GeneralSettings::self();
|
||||
settings->setShowZoomSlider(m_showZoomSlider->isChecked());
|
||||
settings->setShowSpaceInfo(m_showSpaceInfo->isChecked());
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
}
|
||||
|
||||
void StatusBarSettingsPage::restoreDefaults()
|
||||
|
|
|
@ -94,7 +94,7 @@ void NavigationSettingsPage::applySettings()
|
|||
settings->setBrowseThroughArchives(m_openArchivesAsFolder->isChecked());
|
||||
settings->setAutoExpandFolders(m_autoExpandFolders->isChecked());
|
||||
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
}
|
||||
|
||||
void NavigationSettingsPage::restoreDefaults()
|
||||
|
|
|
@ -148,7 +148,7 @@ void StartupSettingsPage::applySettings()
|
|||
settings->setShowFullPath(m_showFullPath->isChecked());
|
||||
settings->setFilterBar(m_filterBar->isChecked());
|
||||
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
}
|
||||
|
||||
void StartupSettingsPage::restoreDefaults()
|
||||
|
|
|
@ -132,7 +132,7 @@ void ViewModeSettings::readConfig()
|
|||
}
|
||||
}
|
||||
|
||||
void ViewModeSettings::writeConfig()
|
||||
void ViewModeSettings::save()
|
||||
{
|
||||
switch (m_mode) {
|
||||
case ViewModeSettings::IconsMode: IconsModeSettings::self()->save(); break;
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
int fontWeight() const;
|
||||
|
||||
void readConfig();
|
||||
void writeConfig();
|
||||
void save();
|
||||
|
||||
private:
|
||||
ViewMode m_mode;
|
||||
|
|
|
@ -195,7 +195,7 @@ void ViewSettingsTab::applySettings()
|
|||
settings.setItalicFont(font.italic());
|
||||
settings.setFontWeight(font.weight());
|
||||
|
||||
settings.writeConfig();
|
||||
settings.save();
|
||||
}
|
||||
|
||||
void ViewSettingsTab::restoreDefaultSettings()
|
||||
|
|
|
@ -352,7 +352,7 @@ void ViewPropertiesDialog::applyViewProperties()
|
|||
// all existing viewproperties invalid, as they have a smaller time stamp.
|
||||
GeneralSettings* settings = GeneralSettings::self();
|
||||
settings->setViewPropsTimestamp(QDateTime::currentDateTime());
|
||||
settings->writeConfig();
|
||||
settings->save();
|
||||
}
|
||||
|
||||
m_dolphinView->setMode(m_viewProps->viewMode());
|
||||
|
|
|
@ -365,7 +365,7 @@ void ViewProperties::save()
|
|||
QDir dir;
|
||||
dir.mkpath(m_filePath);
|
||||
m_node->setVersion(CurrentViewPropertiesVersion);
|
||||
m_node->writeConfig();
|
||||
m_node->save();
|
||||
m_changedProps = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue