summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-08 10:27:30 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-08 16:33:03 +0300
commitaf1eff03c9e839914aab4109970c4a9f6fac8a99 (patch)
treeae11034560b0e1c270614077ffd8f0f7485c7381 /include
parentAdd RekonqWindow tests (diff)
downloadrekonq-af1eff03c9e839914aab4109970c4a9f6fac8a99.tar.xz
RekonqSettings: add resetValue and remove value's defaultValue parameter
- generate default rekonqrc and include it in libsettings - Settings uses :/settings/rekonqrc to provide default values - Add Settings::path() to get the default settings location
Diffstat (limited to 'include')
-rw-r--r--include/rsettings.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rsettings.hpp b/include/rsettings.hpp
index 9f0fc4d0..67eb46e2 100644
--- a/include/rsettings.hpp
+++ b/include/rsettings.hpp
@@ -23,7 +23,8 @@ public:
virtual void endGroup() = 0;
virtual void setValue(const QString &key, const QVariant &value) = 0;
- [[nodiscard]] virtual QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const = 0;
+ virtual void resetValue(const QString &key) = 0;
+ [[nodiscard]] virtual QVariant value(const QString &key) const = 0;
[[nodiscard]] virtual QString filePath() const = 0;