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>
This commit is contained in:
Berthold Stoeger 2019-08-15 00:30:56 +02:00 committed by bstoeger
parent c4831d7ace
commit a79c45e401
3 changed files with 5 additions and 1 deletions

View file

@ -44,6 +44,7 @@ public:
IdRole,
NumberRole,
LocationRole,
DepthDurationRole,
};
static DiveListModel *instance();