From ee839fe5d9e9b581f246c385ba07218c8c53b2f6 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 22 Jan 2020 10:12:43 +0100 Subject: [PATCH] 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 --- mobile-widgets/qmlinterface.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; }