summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-19 18:41:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-19 18:41:50 -0800
commitc3ebeadb340300a04158d677ff52a53523698921 (patch)
tree9409266da4ef654f9ea34e686a6f5a27c9696168 /qt-mobile/qmlmanager.h
parent41c59c1c8d0d05ad8169aed9a039259d5a707570 (diff)
downloadsubsurface-c3ebeadb340300a04158d677ff52a53523698921.tar.gz
QML-UI: allow toggling verbose mode from the UI
Hidden in the Developer menu. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r--qt-mobile/qmlmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index 37161c832..e9b0d27e7 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -19,6 +19,7 @@ class QMLManager : public QObject
Q_PROPERTY(int timeThreshold READ timeThreshold WRITE setTimeThreshold NOTIFY timeThresholdChanged)
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)
public:
QMLManager();
~QMLManager();
@@ -37,6 +38,9 @@ public:
bool locationServiceEnabled() const;
void setLocationServiceEnabled(bool locationServiceEnable);
+ bool verboseEnabled() const;
+ void setVerboseEnabled(bool verboseMode);
+
int distanceThreshold() const;
void setDistanceThreshold(int distance);
@@ -83,6 +87,7 @@ private:
bool m_saveCloudPassword;
QString m_logText;
bool m_locationServiceEnabled;
+ bool m_verboseEnabled;
int m_distanceThreshold;
int m_timeThreshold;
GpsLocation *locationProvider;
@@ -97,6 +102,7 @@ signals:
void cloudPasswordChanged();
void saveCloudPasswordChanged();
void locationServiceEnabledChanged();
+ void verboseEnabledChanged();
void logTextChanged();
void timeThresholdChanged();
void distanceThresholdChanged();