aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp5
-rw-r--r--core/subsurface-qt/DiveObjectHelper.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index dfc1739e8..5174b1a7e 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -81,6 +81,11 @@ int DiveObjectHelper::id() const
return m_dive->id;
}
+struct dive *DiveObjectHelper::getDive() const
+{
+ return m_dive;
+}
+
QString DiveObjectHelper::date() const
{
QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC);
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h
index 0abdf8e5a..1070b855e 100644
--- a/core/subsurface-qt/DiveObjectHelper.h
+++ b/core/subsurface-qt/DiveObjectHelper.h
@@ -56,6 +56,7 @@ public:
~DiveObjectHelper();
int number() const;
int id() const;
+ struct dive *getDive() const;
int rating() const;
int visibility() const;
QString date() const;