diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2016-01-27 18:34:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-27 11:18:44 -0800 |
commit | 9342dedb265ed314e1657e82aef407176f7d1e04 (patch) | |
tree | 5597c80fe1138e7341c415337599903a644be646 /subsurface-core/subsurface-qt/DiveObjectHelper.h | |
parent | 4abe73ff2af49431d131f0d42fd10aa6f61b0125 (diff) | |
download | subsurface-9342dedb265ed314e1657e82aef407176f7d1e04.tar.gz |
Move helper function to DiveObjectsHelper
As per Tomaz recomendation the helper functions from 19588ce and e072596
are moved from qmlmanager to DiveObjectsHelper.
[Dirk Hohndel: merged with the latest code]
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 84c93465e..f44971fcd 100644 --- a/subsurface-core/subsurface-qt/DiveObjectHelper.h +++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h @@ -32,6 +32,8 @@ class DiveObjectHelper : public QObject { Q_PROPERTY(QString tripMeta READ tripMeta CONSTANT) Q_PROPERTY(QString maxcns READ maxcns CONSTANT) Q_PROPERTY(QString otu READ otu CONSTANT) + Q_PROPERTY(QString sumWeight READ sumWeight CONSTANT) + Q_PROPERTY(QString getCylinder READ getCylinder CONSTANT) public: DiveObjectHelper(struct dive *dive = NULL); ~DiveObjectHelper(); @@ -62,6 +64,8 @@ public: QString tripMeta() const; QString maxcns() const; QString otu() const; + QString sumWeight() const; + QString getCylinder() const; private: struct dive *m_dive; |