summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-15 00:30:56 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commita79c45e4010a18f8ffe0742ab844743eeeebab9e (patch)
tree6897b25f952ab17efba18113b0aca4539c1c71fd /qt-models/divelistmodel.h
parentc4831d7ace59590e6cdf3c357eb140d4273a270c (diff)
downloadsubsurface-a79c45e4010a18f8ffe0742ab844743eeeebab9e.tar.gz
Mobile: return depthDuration directly from DiveListModel
We don't want to generate a DiveObjectHelper numerous times for every item in the dive list. Therefore, return this data directly from the model. In this case, don't remove from DiveObjectHelper, as these data 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 9e706dd3d..adda8b127 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -44,6 +44,7 @@ public:
IdRole,
NumberRole,
LocationRole,
+ DepthDurationRole,
};
static DiveListModel *instance();