diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-10 18:21:25 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-10 18:21:25 +0200 |
commit | 10a7765c7b6a1d62cb9ca2406145fd3799f5197c (patch) | |
tree | 5e73db926c878412593708624b0caf2bffadccfe /src/settings.h | |
parent | Split off Bookmarks into static lib (diff) | |
download | smolbote-10a7765c7b6a1d62cb9ca2406145fd3799f5197c.tar.xz |
Config should now automatically update when changed
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/settings.h b/src/settings.h index 673158e..0c0cfc7 100644 --- a/src/settings.h +++ b/src/settings.h @@ -24,6 +24,7 @@ #include <toml/toml.h> #include <QVariant> +class QFileSystemWatcher; class Settings { public: @@ -43,8 +44,8 @@ private: QVariant fromList(const toml::Value *list) const; QVariant valueToVariant(const toml::Value *value) const; - toml::Value values; - toml::Value defaults; + toml::Value userValues; + toml::Value defaultValues; QString m_configurationPath; QString m_defaultsPath; @@ -52,6 +53,8 @@ private: QString homeLocation; QString settingsLocation; QString cacheLocation; + + QFileSystemWatcher *m_watcher; }; #endif // SETTINGS_H |