mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
35b33b8c6a
commit
c5d17c3d4d
2 changed files with 66 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue