summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-20 07:37:51 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-20 16:08:55 -0400
commit158a2ec1591598973dbde0cedd80a4494f34045a (patch)
tree80a3a2cc527dff4d3323d6fe58eae2638fc1118c /qt-models/divelistmodel.h
parent32ae3810ce3844bd517002477e41afb78e493f2f (diff)
downloadsubsurface-158a2ec1591598973dbde0cedd80a4494f34045a.tar.gz
Mobile: remove remaining accesses to DiveObjectHelper from QML
Add a couple more roles and remove the dive role that allows accesss to the DiveObjectHelper in the first place. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r--qt-models/divelistmodel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 2f8985235..d9e0928dc 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -36,15 +36,14 @@ QStringList formatGetCylinder(const dive *d);
QStringList getStartPressure(const dive *d);
QStringList getEndPressure(const dive *d);
QStringList getFirstGas(const dive *d);
-
+QStringList getFullCylinderList();
class DiveListModel : public QAbstractListModel
{
Q_OBJECT
public:
enum DiveListRoles {
- DiveRole = Qt::UserRole + 1,
- DiveDateRole,
+ DiveDateRole = Qt::UserRole + 1,
TripIdRole,
TripNrDivesRole,
DateTimeRole,
@@ -69,6 +68,8 @@ public:
NoDiveRole,
DiveSiteRole,
CylinderRole,
+ GetCylinderRole,
+ CylinderListRole,
SingleWeightRole,
StartPressureRole,
EndPressureRole,