diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-05 22:53:12 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-05 22:53:12 -0800 |
commit | ad7fb80d0ac874e55ce91e5845f85aa12906941f (patch) | |
tree | 40941ae46e5efeac23afeee2a03131b7f1a20423 /subsurface-core/subsurface-qt/DiveObjectHelper.h | |
parent | 535a6b9b2529925bba8b665ce7523a74647d5f53 (diff) | |
download | subsurface-ad7fb80d0ac874e55ce91e5845f85aa12906941f.tar.gz |
DiveObjectHelper: check if dive has only one weightsystem
The mobile app should only allow editing the weight entry if there is no
second weight defined.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/subsurface-qt/DiveObjectHelper.h')
-rw-r--r-- | subsurface-core/subsurface-qt/DiveObjectHelper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.h b/subsurface-core/subsurface-qt/DiveObjectHelper.h index f44971fcd..f9ed6a520 100644 --- a/subsurface-core/subsurface-qt/DiveObjectHelper.h +++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h @@ -26,6 +26,7 @@ class DiveObjectHelper : public QObject { Q_PROPERTY(QString gas READ gas CONSTANT) Q_PROPERTY(QString sac READ sac CONSTANT) Q_PROPERTY(QStringList weights READ weights CONSTANT) + Q_PROPERTY(bool singleWeight READ singleWeight CONSTANT) Q_PROPERTY(QString suit READ suit CONSTANT) Q_PROPERTY(QStringList cylinders READ cylinders CONSTANT) Q_PROPERTY(QString trip READ trip CONSTANT) @@ -57,6 +58,7 @@ public: QString sac() const; QStringList weights() const; QString weight(int idx) const; + bool singleWeight() const; QString suit() const; QStringList cylinders() const; QString cylinder(int idx) const; |