From 54720e6cff65ae860fb78431324b75203e71809a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 15 Aug 2019 00:03:15 +0200 Subject: Mobile: move tripNrDive from DiveObjectHelper to 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. Signed-off-by: Berthold Stoeger --- qt-models/divelistmodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-models/divelistmodel.h') diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index 1cc3abb7d..e799ecf8a 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -39,6 +39,7 @@ public: DiveRole = Qt::UserRole + 1, DiveDateRole, TripIdRole, + TripNrDivesRole, }; static DiveListModel *instance(); -- cgit v1.2.3-70-g09d2