diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2019-04-01 10:28:02 +0200 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2019-04-01 10:28:02 +0200 |
commit | cad4889e490f4376849744ec6ab3c84c71807706 (patch) | |
tree | 71ef0ac3eda821e0fe24475ed99e9ccbe3d97b84 /src/core/kconfiggroup.h | |
parent | 998982a47cbc4ab8779c85a28052fb96195fd2a1 (diff) | |
download | kconfig-cad4889e490f4376849744ec6ab3c84c71807706.tar.gz kconfig-cad4889e490f4376849744ec6ab3c84c71807706.tar.bz2 |
Add Notify capability to revertToDefault
This enables KConfigWatcher to detect those changes, too.
Differential Revision: https://phabricator.kde.org/D20039
Diffstat (limited to 'src/core/kconfiggroup.h')
-rw-r--r-- | src/core/kconfiggroup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/kconfiggroup.h b/src/core/kconfiggroup.h index 0cedeaa7..8b0174b1 100644 --- a/src/core/kconfiggroup.h +++ b/src/core/kconfiggroup.h @@ -578,9 +578,14 @@ public: * * @param key The key of the entry to revert. */ + // TODO KF6 merge with the other one void revertToDefault(const QString &key); + void revertToDefault(const QString &key, WriteConfigFlags pFlag); + /** Overload for revertToDefault(const QString&) */ + // TODO KF6 merge with the other one void revertToDefault(const char *key); + void revertToDefault(const char *key, WriteConfigFlags pFlag); /** * Whether a default is specified for an entry in either the |