aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-21 12:42:16 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-21 12:42:16 -0800
commit9e9d220c98038aa8a6864b7544544b09cfadefd2 (patch)
tree7822b22cfc884274b9efc71416dfeccac57177f7 /qt-mobile/qml/DiveList.qml
parent6faf33047eba4b992b30d39ae53c63bcabc5eea2 (diff)
downloadsubsurface-9e9d220c98038aa8a6864b7544544b09cfadefd2.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r--qt-mobile/qml/DiveList.qml5
1 files changed, 3 insertions, 2 deletions
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 {