From cad4889e490f4376849744ec6ab3c84c71807706 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 1 Apr 2019 10:28:02 +0200 Subject: Add Notify capability to revertToDefault This enables KConfigWatcher to detect those changes, too. Differential Revision: https://phabricator.kde.org/D20039 --- src/core/kconfiggroup.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/kconfiggroup.h') 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 -- cgit v1.2.1