diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-05 20:00:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-09 12:41:11 -0700 |
commit | c5d17c3d4ddd61a3d0938b3290d002fe6b7622d0 (patch) | |
tree | c68002626380e613054755ebd73ac504bfcb3770 /qt-models/mobilelistmodel.h | |
parent | 35b33b8c6a86b6add120aaa1c65f37d21f6a53a8 (diff) | |
download | subsurface-c5d17c3d4ddd61a3d0938b3290d002fe6b7622d0.tar.gz |
mobile/divelist: copy & paste the roles-code from DiveListModel
To act as a drop-in replacement (at least as much as possible),
move the roles from the old DiveListModel to the common base
model of mobile and desktop.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/mobilelistmodel.h')
-rw-r--r-- | qt-models/mobilelistmodel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-models/mobilelistmodel.h b/qt-models/mobilelistmodel.h index 92a12960d..66c520cf7 100644 --- a/qt-models/mobilelistmodel.h +++ b/qt-models/mobilelistmodel.h @@ -91,4 +91,15 @@ private slots: void changed(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles); }; + +// Helper functions - these are actually defined in DiveObjectHelper.cpp. Why declare them here? +QString formatSac(const dive *d); +QString formatNotes(const dive *d); +QString format_gps_decimal(const dive *d); +QStringList formatGetCylinder(const dive *d); +QStringList getStartPressure(const dive *d); +QStringList getEndPressure(const dive *d); +QStringList getFirstGas(const dive *d); +QStringList getFullCylinderList(); + #endif |