Mobile: return location 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>
This commit is contained in:
committed by
bstoeger
parent
4b389e267d
commit
c4831d7ace
@@ -147,7 +147,7 @@ Kirigami.ScrollablePage {
|
||||
anchors.left: leftBarDive.right
|
||||
Controls.Label {
|
||||
id: locationText
|
||||
text: dive.location
|
||||
text: location
|
||||
font.weight: Font.Bold
|
||||
font.pointSize: subsurfaceTheme.regularPointSize
|
||||
elide: Text.ElideRight
|
||||
|
||||
Reference in New Issue
Block a user