summaryrefslogtreecommitdiff
path: root/src/settings/settingswidgets.hpp
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 /src/settings/settingswidgets.hpp
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 'src/settings/settingswidgets.hpp')
-rw-r--r--src/settings/settingswidgets.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/settings/settingswidgets.hpp b/src/settings/settingswidgets.hpp
index cb08b591..532a5683 100644
--- a/src/settings/settingswidgets.hpp
+++ b/src/settings/settingswidgets.hpp
@@ -27,7 +27,7 @@ signals:
public slots:
void save();
- void reset();
+ virtual void reset() = 0;
protected:
RekonqSettings *m_settings;
@@ -38,6 +38,7 @@ class GeneralSettingsWidget final : public SettingsWidget {
public:
explicit GeneralSettingsWidget(RekonqSettings *, QWidget *parent = nullptr);
~GeneralSettingsWidget() override = default;
+ void reset() override;
};
class AppearanceSettingsWidget final : public SettingsWidget {
@@ -45,6 +46,7 @@ class AppearanceSettingsWidget final : public SettingsWidget {
public:
explicit AppearanceSettingsWidget(RekonqSettings *, QWidget *parent = nullptr);
~AppearanceSettingsWidget() override = default;
+ void reset() override;
};
class NetworkSettingsWidget final : public SettingsWidget {
@@ -52,6 +54,7 @@ class NetworkSettingsWidget final : public SettingsWidget {
public:
explicit NetworkSettingsWidget(RekonqSettings *, QWidget *parent = nullptr);
~NetworkSettingsWidget() override = default;
+ void reset() override;
};
class ShortcutsSettingsWidget final : public SettingsWidget {
@@ -59,4 +62,5 @@ class ShortcutsSettingsWidget final : public SettingsWidget {
public:
explicit ShortcutsSettingsWidget(RekonqSettings *, QWidget *parent = nullptr);
~ShortcutsSettingsWidget() override = default;
+ void reset() override;
};