mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: provide direct access to dives in DiveListModel
Accesses were via DiveObjectHelpers. Provide a direct access to struct dive *. Use this for the filter - there is no point in mass generating DiveHelperObjects in the filter code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ca939300e2
commit
62f1a92068
2 changed files with 14 additions and 6 deletions
|
|
@ -55,6 +55,7 @@ public:
|
|||
void removeDiveById(int id);
|
||||
void updateDive(int i, dive *d);
|
||||
void reload();
|
||||
struct dive *getDive(int i);
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int getDiveIdx(int id) const;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue