summaryrefslogtreecommitdiff
path: root/src/settings/settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/settings.hpp')
-rw-r--r--src/settings/settings.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/settings/settings.hpp b/src/settings/settings.hpp
index 713ce38d..8d413985 100644
--- a/src/settings/settings.hpp
+++ b/src/settings/settings.hpp
@@ -12,22 +12,28 @@
#include <rsettings.hpp>
class QSettings;
-class Settings final : public RekonqSettings {
+class Settings : public RekonqSettings {
Q_OBJECT
public:
+ [[nodiscard]] static QString path();
+
explicit Settings(const QString &settingsPath, QObject *parent = nullptr);
- ~Settings() override = default;
+ ~Settings() override;
void beginGroup(const QString &prefix) override;
void endGroup() override;
void setValue(const QString &key, const QVariant &value) override;
- [[nodiscard]] QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const override;
+ void resetValue(const QString &key) override;
+ [[nodiscard]] QVariant value(const QString &key) const override;
[[nodiscard]] QString filePath() const override;
+protected:
+ QSettings *d;
+ QSettings *b;
+
private:
Q_DISABLE_COPY_MOVE(Settings)
- QSettings *d;
};