summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.h
diff options
context:
space:
mode:
authorGravatar Tim Wootton <tim@tee-jay.org.uk>2016-07-18 23:08:27 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-23 10:50:15 +0900
commitd0e2ff578aa612c6dd9320d831e068ded1202675 (patch)
tree494734a245a962867960b4ccad6d71f916e610fd /core/subsurface-qt/DiveObjectHelper.h
parent2cffb77d19e6ed7f3f5b26db8b68490159486f93 (diff)
downloadsubsurface-d0e2ff578aa612c6dd9320d831e068ded1202675.tar.gz
Let cns and otu return ints rather than QStrings
This way they display correctly when accessed from grantlee template Fixes #1085 Signed-off-by: Tim Wootton <tim@tee-jay.org.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.h')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h
index 6d95d7578..ab42a59b3 100644
--- a/core/subsurface-qt/DiveObjectHelper.h
+++ b/core/subsurface-qt/DiveObjectHelper.h
@@ -36,8 +36,8 @@ class DiveObjectHelper : public QObject {
Q_PROPERTY(QStringList cylinders READ cylinders CONSTANT)
Q_PROPERTY(QString trip READ trip CONSTANT)
Q_PROPERTY(QString tripMeta READ tripMeta CONSTANT)
- Q_PROPERTY(QString maxcns READ maxcns CONSTANT)
- Q_PROPERTY(QString otu READ otu CONSTANT)
+ Q_PROPERTY(int maxcns READ maxcns CONSTANT)
+ Q_PROPERTY(int 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)
@@ -79,8 +79,8 @@ public:
QString cylinder(int idx) const;
QString trip() const;
QString tripMeta() const;
- QString maxcns() const;
- QString otu() const;
+ int maxcns() const;
+ int otu() const;
QString sumWeight() const;
QString getCylinder() const;
QString startPressure() const;