diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2016-02-09 17:19:06 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-09 12:10:50 -0800 |
commit | f3b35d175a381a57447b2ff33a8cd6d0db69b924 (patch) | |
tree | 58a080b6b05a3c4a55fce989969061d0db4c335e /subsurface-core/subsurface-qt/DiveObjectHelper.h | |
parent | 9c5b97e6cfe738fe2ac9f2b3f72ed624230aef0a (diff) | |
download | subsurface-f3b35d175a381a57447b2ff33a8cd6d0db69b924.tar.gz |
QML UI: add function to get cylinder pressures
Since we only show the first cylinder we can also only edit the first cylinder.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.h b/subsurface-core/subsurface-qt/DiveObjectHelper.h index f9ed6a520..5d8abfd99 100644 --- a/subsurface-core/subsurface-qt/DiveObjectHelper.h +++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h @@ -35,6 +35,8 @@ class DiveObjectHelper : public QObject { Q_PROPERTY(QString otu READ otu CONSTANT) Q_PROPERTY(QString sumWeight READ sumWeight CONSTANT) Q_PROPERTY(QString getCylinder READ getCylinder CONSTANT) + Q_PROPERTY(QString startPressure READ startPressure CONSTANT) + Q_PROPERTY(QString endPressure READ endPressure CONSTANT) public: DiveObjectHelper(struct dive *dive = NULL); ~DiveObjectHelper(); @@ -68,6 +70,8 @@ public: QString otu() const; QString sumWeight() const; QString getCylinder() const; + QString startPressure() const; + QString endPressure() const; private: struct dive *m_dive; |