diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-22 10:12:43 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-25 17:13:20 -0800 |
commit | ee839fe5d9e9b581f246c385ba07218c8c53b2f6 (patch) | |
tree | 311623aeccda5b4ca07a3832e92c211611fc0866 /mobile-widgets/qmlinterface.h | |
parent | 59ac5060914350aef68cc35fc4201a36531bc781 (diff) | |
download | subsurface-ee839fe5d9e9b581f246c385ba07218c8c53b2f6.tar.gz |
mobile-widgets: make DECO_MODE and DIVE_MODE available to QML
Duplicate deco_mode to DECO_MODE, in order to make it available to QML.
Duplicate enum divemode_t to DIVE_MODE in order to make it
available to QML. Only part of the enum is made available.
Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qmlinterface.h')
-rw-r--r-- | mobile-widgets/qmlinterface.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mobile-widgets/qmlinterface.h b/mobile-widgets/qmlinterface.h index 207adca40..28aaa90d7 100644 --- a/mobile-widgets/qmlinterface.h +++ b/mobile-widgets/qmlinterface.h @@ -142,6 +142,21 @@ public: }; Q_ENUM(CLOUD_STATUS); + enum DECO_MODE { + BUEHLMANN, + RECREATIONAL, + VPMB + }; + Q_ENUM(DECO_MODE); + + enum DIVE_MODE { + OC, + CCR, + PSCR, + FREEDIVE + }; + Q_ENUM(DIVE_MODE); + public: CLOUD_STATUS cloud_verification_status() { return (CLOUD_STATUS)prefs.cloud_verification_status; } DURATION duration_units() { return (DURATION)prefs.units.duration_units; } |