Mobile: return dive-id directly from DiveListModel

We don't want to generate a DiveObjectHelper numerous times for
every item in the dive list. Therefore, return this datum directly
from the model. In this case, don't remove from DiveObjectHelper,
as this datum might be used by grantlee templates.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-08-15 00:15:30 +02:00 committed by bstoeger
parent c6b3309d13
commit bf081866e9
3 changed files with 8 additions and 5 deletions

View file

@ -40,7 +40,8 @@ public:
DiveDateRole,
TripIdRole,
TripNrDivesRole,
DateTimeRole
DateTimeRole,
IdRole
};
static DiveListModel *instance();