From 9e9d220c98038aa8a6864b7544544b09cfadefd2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Jan 2016 12:42:16 -0800 Subject: QML UI: show dive trip again This once again displays trips in the dive list and makes the visual a bit more spaceous. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveList.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-mobile/qml/DiveList.qml') diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index 9664c95a3..60a45429e 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -102,7 +102,7 @@ MobileComponents.Page { id: tripHeading Item { width: page.width - MobileComponents.Units.gridUnit - height: childrenRect.height + MobileComponents.Units.smallSpacing * 2 + height: childrenRect.height + MobileComponents.Units.smallSpacing * 2 + Math.max(2, MobileComponents.Units.gridUnit / 2) MobileComponents.Heading { id: sectionText @@ -110,6 +110,7 @@ MobileComponents.Page { anchors { top: parent.top left: parent.left + topMargin: Math.max(2, MobileComponents.Units.gridUnit / 2) leftMargin: MobileComponents.Units.gridUnit / 2 right: parent.right } @@ -149,7 +150,7 @@ MobileComponents.Page { boundsBehavior: Flickable.StopAtBounds maximumFlickVelocity: parent.height * 5 cacheBuffer: 0 // seems to avoid empty rendered profiles - section.property: "trip" // FIXME: "dive.trip" gives weird section labels. + section.property: "dive.trip" section.criteria: ViewSection.FullString section.delegate: tripHeading header: MobileComponents.Heading { -- cgit v1.2.3-70-g09d2