summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp4
-rw-r--r--core/subsurface-qt/DiveObjectHelper.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index d4b8e32cb..c605d01c8 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -127,9 +127,9 @@ QString DiveObjectHelper::gps_decimal() const
return val;
}
-QVariant DiveObjectHelper::dive_site_uuid() const
+QVariant DiveObjectHelper::dive_site() const
{
- return QVariant::fromValue(m_dive->dive_site_uuid);
+ return QVariant::fromValue((void *)get_dive_site_by_uuid(m_dive->dive_site_uuid));
}
QString DiveObjectHelper::duration() const
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h
index 1070b855e..c5f116e1a 100644
--- a/core/subsurface-qt/DiveObjectHelper.h
+++ b/core/subsurface-qt/DiveObjectHelper.h
@@ -20,7 +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(QVariant dive_site READ dive_site CONSTANT)
Q_PROPERTY(QString duration READ duration CONSTANT)
Q_PROPERTY(bool noDive READ noDive CONSTANT)
Q_PROPERTY(QString depth READ depth CONSTANT)
@@ -65,7 +65,7 @@ public:
QString location() const;
QString gps() const;
QString gps_decimal() const;
- QVariant dive_site_uuid() const;
+ QVariant dive_site() const;
QString duration() const;
bool noDive() const;
QString depth() const;