summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-07-19 16:35:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-23 03:20:58 +0900
commita66d876ed0f0f36ecf133ecaf61181c0133cb193 (patch)
treef8a8bb19c7ec2d0503634470c901feb43ea19fba /mobile-widgets/qmlmanager.h
parent0eef27376a7f0f17ef0225d33db7bfe61f52d8f9 (diff)
downloadsubsurface-a66d876ed0f0f36ecf133ecaf61181c0133cb193.tar.gz
QML UI: add checkbox to show/hide developer menu
Add a checkbox to the preferences page to facilitate selective visibility of the developer menu. With the coresponding function in qmlmanager. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 8e4f05fa6..8f3db3266 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -42,6 +42,7 @@ class QMLManager : public QObject {
Q_PROPERTY(bool showPin READ showPin WRITE setShowPin NOTIFY showPinChanged)
Q_PROPERTY(QString progressMessage READ progressMessage WRITE setProgressMessage NOTIFY progressMessageChanged)
Q_PROPERTY(bool libdcLog READ libdcLog WRITE setLibdcLog NOTIFY libdcLogChanged)
+ Q_PROPERTY(bool developer READ developer WRITE setDeveloper NOTIFY developerChanged)
public:
QMLManager();
@@ -119,6 +120,9 @@ public:
bool libdcLog() const;
void setLibdcLog(bool value);
+ bool developer() const;
+ void setDeveloper(bool value);
+
typedef void (QMLManager::*execute_function_type)();
DiveListSortModel *dlSortModel;
@@ -219,6 +223,7 @@ private:
DCDeviceData *m_device_data;
QString m_progressMessage;
bool m_libdcLog;
+ bool m_developer;
bool m_btEnabled;
#if defined(Q_OS_ANDROID)
@@ -250,6 +255,7 @@ signals:
void sendScreenChanged(QScreen *screen);
void progressMessageChanged();
void libdcLogChanged();
+ void developerChanged();
};
#endif