summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-15 00:18:25 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commit4b389e267dcb8fd5dbeb9403fb8faf0f74ec18ce (patch)
treea5e1bab1ae445ab6c2a7eb6df4984787fd920c50 /qt-models/divelistmodel.h
parentbf081866e9a15a8e9bdee46cbdf3058fcdab3450 (diff)
downloadsubsurface-4b389e267dcb8fd5dbeb9403fb8faf0f74ec18ce.tar.gz
Mobile: return dive-number 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>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r--qt-models/divelistmodel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 9b39e5513..5bec0de10 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -41,7 +41,8 @@ public:
TripIdRole,
TripNrDivesRole,
DateTimeRole,
- IdRole
+ IdRole,
+ NumberRole,
};
static DiveListModel *instance();