summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp5
-rw-r--r--core/subsurface-qt/DiveObjectHelper.h2
2 files changed, 7 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"));
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h
index 766c20fa5..b4b7e2668 100644
--- a/core/subsurface-qt/DiveObjectHelper.h
+++ b/core/subsurface-qt/DiveObjectHelper.h
@@ -20,6 +20,7 @@ class DiveObjectHelper : public QObject {
Q_PROPERTY(QString location READ location CONSTANT)
Q_PROPERTY(QString gps READ gps CONSTANT)
Q_PROPERTY(QString gps_decimal READ gps_decimal CONSTANT)
+ Q_PROPERTY(QVariant dive_site_uuid READ dive_site_uuid CONSTANT)
Q_PROPERTY(QString duration READ duration CONSTANT)
Q_PROPERTY(bool noDive READ noDive CONSTANT)
Q_PROPERTY(QString depth READ depth CONSTANT)
@@ -60,6 +61,7 @@ public:
QString location() const;
QString gps() const;
QString gps_decimal() const;
+ QVariant dive_site_uuid() const;
QString duration() const;
bool noDive() const;
QString depth() const;