From 4b389e267dcb8fd5dbeb9403fb8faf0f74ec18ce Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 15 Aug 2019 00:18:25 +0200 Subject: 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 --- mobile-widgets/qml/DiveList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qml') 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 { -- cgit v1.2.3-70-g09d2