diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-15 00:18:25 +0200 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-09-14 13:20:59 +0200 |
commit | 4b389e267dcb8fd5dbeb9403fb8faf0f74ec18ce (patch) | |
tree | a5e1bab1ae445ab6c2a7eb6df4984787fd920c50 /mobile-widgets/qml/DiveList.qml | |
parent | bf081866e9a15a8e9bdee46cbdf3058fcdab3450 (diff) | |
download | subsurface-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 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 7d887368a..ef117719c 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -186,7 +186,7 @@ Kirigami.ScrollablePage { } Controls.Label { id: numberText - text: "#" + dive.number + text: "#" + number font.pointSize: subsurfaceTheme.smallPointSize color: innerListItem.checked ? subsurfaceTheme.darkerPrimaryTextColor : secondaryTextColor anchors { |