summaryrefslogtreecommitdiffstats
path: root/subsurface-core/subsurface-qt/DiveObjectHelper.h
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2016-02-13 18:34:29 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-13 10:03:56 -0800
commita01bcd82aa1c789ff87f58f5e117f9fadb7f8e32 (patch)
tree89423d54fc0ab4a46137014d8dec0b5683737f86 /subsurface-core/subsurface-qt/DiveObjectHelper.h
parent6252d0cd3bda32256d284aec09230c9bf1f8291b (diff)
downloadsubsurface-a01bcd82aa1c789ff87f58f5e117f9fadb7f8e32.tar.gz
Add helper function to retrieve first gas
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.h b/subsurface-core/subsurface-qt/DiveObjectHelper.h
index 5d8abfd99..a4a425ac0 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.h
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h
@@ -37,6 +37,7 @@ class DiveObjectHelper : public QObject {
Q_PROPERTY(QString getCylinder READ getCylinder CONSTANT)
Q_PROPERTY(QString startPressure READ startPressure CONSTANT)
Q_PROPERTY(QString endPressure READ endPressure CONSTANT)
+ Q_PROPERTY(QString firstGas READ firstGas CONSTANT)
public:
DiveObjectHelper(struct dive *dive = NULL);
~DiveObjectHelper();
@@ -72,6 +73,7 @@ public:
QString getCylinder() const;
QString startPressure() const;
QString endPressure() const;
+ QString firstGas() const;
private:
struct dive *m_dive;