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>
This commit is contained in:
Joakim Bygdell 2016-02-09 17:19:06 +01:00 committed by Dirk Hohndel
parent 9c5b97e6cf
commit f3b35d175a
2 changed files with 28 additions and 1 deletions

View file

@ -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;