summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-03-08 21:18:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-03-11 11:40:12 -0700
commit2317fed9b6d4139fe648c2203ace37559016db46 (patch)
tree7466b2e1525a7971f914f35621ce00717350f008 /core/subsurface-qt/DiveObjectHelper.cpp
parenteac7c4bdaeb9726ac23d37b8819395034fbd8dfe (diff)
downloadsubsurface-2317fed9b6d4139fe648c2203ace37559016db46.tar.gz
DiveObjectHelper: add dive_site_uuid()
The map widget on the mobile version requires that a dive object from a model has a dive_site uuid. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index 03735bd85..093451ad3 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -122,6 +122,11 @@ QString DiveObjectHelper::gps_decimal() const
return val;
}
+QVariant DiveObjectHelper::dive_site_uuid() const
+{
+ return QVariant::fromValue(m_dive->dive_site_uuid);
+}
+
QString DiveObjectHelper::duration() const
{
return get_dive_duration_string(m_dive->duration.seconds, QObject::tr("h"), QObject::tr("min"));