Signed-off-by: Tim Wootton <[email protected]>
---
 core/subsurface-qt/DiveObjectHelper.cpp | 5 +++++
 core/subsurface-qt/DiveObjectHelper.h   | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/core/subsurface-qt/DiveObjectHelper.cpp 
b/core/subsurface-qt/DiveObjectHelper.cpp
index e71b076..fc406d6 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -321,6 +321,11 @@ int DiveObjectHelper::rating() const
        return m_dive->rating;
 }
 
+int DiveObjectHelper::visibility() const
+{
+       return m_dive->visibility;
+}
+
 QString DiveObjectHelper::sumWeight() const
 {
        weight_t sum = { 0 };
diff --git a/core/subsurface-qt/DiveObjectHelper.h 
b/core/subsurface-qt/DiveObjectHelper.h
index fd44f81..6d95d75 100644
--- a/core/subsurface-qt/DiveObjectHelper.h
+++ b/core/subsurface-qt/DiveObjectHelper.h
@@ -11,6 +11,7 @@ class DiveObjectHelper : public QObject {
        Q_PROPERTY(int number READ number CONSTANT)
        Q_PROPERTY(int id READ id CONSTANT)
        Q_PROPERTY(int rating READ rating CONSTANT)
+       Q_PROPERTY(int visibility READ visibility CONSTANT)
        Q_PROPERTY(QString date READ date CONSTANT)
        Q_PROPERTY(QString time READ time CONSTANT)
        Q_PROPERTY(int timestamp READ timestamp CONSTANT)
@@ -51,6 +52,7 @@ public:
        int number() const;
        int id() const;
        int rating() const;
+       int visibility() const;
        QString date() const;
        timestamp_t timestamp() const;
        QString time() const;
-- 
2.1.4

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to