summaryrefslogtreecommitdiffstats
path: root/subsurface-core/subsurface-qt/DiveObjectHelper.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-26 20:06:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-26 20:06:30 -0800
commit35e60a7355e23b50fc7f48f48efe68a26b445454 (patch)
tree8353c0dce3d6f63fb4f0047c4497c873c57e98b5 /subsurface-core/subsurface-qt/DiveObjectHelper.h
parent6a8768ee262aa3debfe8868fa7a5da13e0ba3a3b (diff)
downloadsubsurface-35e60a7355e23b50fc7f48f48efe68a26b445454.tar.gz
QML UI: don't combine multiple trips to the same location into one
The way sectioning of the dive list works is by watching for different strings in the section.property. In order to be able to tell different trips apart we combine the address of the dive trip variable with the location (which will create a new section for a new trip, even if the location text is the same) and then strip that information out before showing the trip header. 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 4d1e1acb2..84c93465e 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.h
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h
@@ -29,6 +29,7 @@ class DiveObjectHelper : public QObject {
Q_PROPERTY(QString suit READ suit CONSTANT)
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)
public:
@@ -58,6 +59,7 @@ public:
QStringList cylinders() const;
QString cylinder(int idx) const;
QString trip() const;
+ QString tripMeta() const;
QString maxcns() const;
QString otu() const;