diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-01-06 17:44:51 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-01-09 09:58:16 +0000 |
commit | 58f754bb6623990d603779a7a40620b90dfcf98c (patch) | |
tree | b9ec1999469abdb55b042271109a177848b38e34 /src/plugins/todo/settings.h | |
parent | b872a380407985fb7c4d7ab319cfb9a3e85787de (diff) |
To-Do: save the settings only if they've been "apply"d
The colors don't play very well with the theme support. We want to
switch the colors according to the current theme if the user doesn't
care for them. Not saving the default colors achieves that.
Change-Id: Idafc13e561d33736eb21b26944756291449594b5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/todo/settings.h')
-rw-r--r-- | src/plugins/todo/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/todo/settings.h b/src/plugins/todo/settings.h index 69ac06c0cc..e7bedd2cae 100644 --- a/src/plugins/todo/settings.h +++ b/src/plugins/todo/settings.h @@ -44,6 +44,8 @@ class Settings { public: KeywordList keywords; ScanningScope scanningScope = ScanningScopeCurrentFile; + bool keywordsEdited = false; + void save(QSettings *settings) const; void load(QSettings *settings); void setDefault(); |