mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
KConfig* API overhaul. only cosmetics, so don't panic.
KConfigBase: - remove separator argument from list entry reading/writing functions - introduce {read,write}XdgListEntry() - kill readPathListEntry(), add readPathEntry() overload instead. the default value is not optional any more, as it defines the return type. this is consistent with the readEntry() functions. - rename clean() => markAsClean(), remove rollback() - rename ConfigState => AccessMode, getConfigState() => accessMode() - rename {entry,group}IsImmutable() => is{Entry,Group}Immutable() - remove NLS alias to Localized KConfig: - remove setGroup() & group() - reshuffle OpenFlag enum, introduce NoCascade for symmetry - remove setExtraConfigFiles() alias to addConfigSources() KConfigGroup: - inherit KConfigBase::deleteGroup() overloads - make convertToQVariant() private, it will probably change somehow - KConfig & KConfigGroup: deprecate entryMap() - remove bogus declarations: KConfigGroup::setReadDefaults(), KConfig::readEntryUntranslated() - apidox - reshuffle the declarations in the headers svn path=/trunk/KDE/kdebase/apps/; revision=728852
This commit is contained in:
parent
7264f303bc
commit
6339218179
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void DolphinContextMenu::openTrashContextMenu()
|
|||
KMenu* popup = new KMenu(m_mainWindow);
|
||||
|
||||
QAction* emptyTrashAction = new QAction(KIcon("trash-empty"), i18nc("@action:inmenu", "Empty Trash"), popup);
|
||||
KConfig trashConfig("trashrc", KConfig::OnlyLocal);
|
||||
KConfig trashConfig("trashrc", KConfig::SimpleConfig);
|
||||
emptyTrashAction->setEnabled(!trashConfig.group("Status").readEntry("Empty", true));
|
||||
popup->addAction(emptyTrashAction);
|
||||
|
||||
|
|
Loading…
Reference in a new issue