mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
59ac506091
commit
ee839fe5d9
1 changed files with 15 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue