summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-23 19:35:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-23 19:49:57 -0700
commit206df227f8cf7026af7f67a49d717ba67a51d944 (patch)
tree0bd08af223a474fa178abb9e119c3c2fe66b32b1 /mobile-widgets/qmlmanager.h
parent26b206af1ffdc2c73c5f2bd5f82e6559710b480b (diff)
downloadsubsurface-206df227f8cf7026af7f67a49d717ba67a51d944.tar.gz
QML UI: remember the theme
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index f1ccf6403..f37389acd 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -25,6 +25,7 @@ class QMLManager : public QObject {
Q_PROPERTY(bool locationServiceAvailable READ locationServiceAvailable WRITE setLocationServiceAvailable NOTIFY locationServiceAvailableChanged)
Q_PROPERTY(int distanceThreshold READ distanceThreshold WRITE setDistanceThreshold NOTIFY distanceThresholdChanged)
Q_PROPERTY(int timeThreshold READ timeThreshold WRITE setTimeThreshold NOTIFY timeThresholdChanged)
+ Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged)
Q_PROPERTY(bool loadFromCloud READ loadFromCloud WRITE setLoadFromCloud NOTIFY loadFromCloudChanged)
Q_PROPERTY(QString startPageText READ startPageText WRITE setStartPageText NOTIFY startPageTextChanged)
Q_PROPERTY(bool verboseEnabled READ verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged)
@@ -79,6 +80,9 @@ public:
int timeThreshold() const;
void setTimeThreshold(int time);
+ QString theme() const;
+ void setTheme(QString theme);
+
bool loadFromCloud() const;
void setLoadFromCloud(bool done);
void syncLoadFromCloud();
@@ -209,6 +213,7 @@ signals:
void verboseEnabledChanged();
void logTextChanged();
void timeThresholdChanged();
+ void themeChanged();
void distanceThresholdChanged();
void loadFromCloudChanged();
void startPageTextChanged();