From bf081866e9a15a8e9bdee46cbdf3058fcdab3450 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 15 Aug 2019 00:15:30 +0200 Subject: 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 --- qt-models/divelistmodel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-models/divelistmodel.h') diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index c0d7aa0a0..9b39e5513 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -40,7 +40,8 @@ public: DiveDateRole, TripIdRole, TripNrDivesRole, - DateTimeRole + DateTimeRole, + IdRole }; static DiveListModel *instance(); -- cgit v1.2.3-70-g09d2