From fcc370b2fe532c42f52834ec7200c07f8e853313 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 16 May 2016 19:59:04 +0200 Subject: Add functions to DiveObjectsHelper This generated the QStringLists needed to populate the combobxes in DiveDetailsEdit. Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- core/subsurface-qt/DiveObjectHelper.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/subsurface-qt/DiveObjectHelper.h') diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index e3b5d1eaa..fd44f81b8 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -42,6 +42,9 @@ class DiveObjectHelper : public QObject { Q_PROPERTY(QString startPressure READ startPressure CONSTANT) Q_PROPERTY(QString endPressure READ endPressure CONSTANT) Q_PROPERTY(QString firstGas READ firstGas CONSTANT) + Q_PROPERTY(QStringList suitList READ suitList CONSTANT) + Q_PROPERTY(QStringList buddyList READ buddyList CONSTANT) + Q_PROPERTY(QStringList divemasterList READ divemasterList CONSTANT) public: DiveObjectHelper(struct dive *dive = NULL); ~DiveObjectHelper(); @@ -81,6 +84,9 @@ public: QString startPressure() const; QString endPressure() const; QString firstGas() const; + QStringList suitList() const; + QStringList buddyList() const; + QStringList divemasterList() const; private: struct dive *m_dive; -- cgit v1.2.3-70-g09d2