mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
32ae3810ce
commit
158a2ec159
4 changed files with 23 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue