diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 09:14:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 09:14:05 -0700 |
commit | edd0d2f2bbc0d65142ecbcbaf184847d26571fa3 (patch) | |
tree | 9bf33f35f36ca2f5cbf642bfbd1a7c5b12a4d786 /mobile-widgets | |
parent | a93e3b26d61498ef5fd8b6818ace0937918bab86 (diff) | |
download | subsurface-edd0d2f2bbc0d65142ecbcbaf184847d26571fa3.tar.gz |
QML UI: DiveList: don't show empty trip heading for dives without trip
We need to hide the left bar and background rectangle as well.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 1c45906d6..379dbf952 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -159,22 +159,24 @@ Kirigami.ScrollablePage { height: childrenRect.height + Kirigami.Units.smallSpacing * 2 + Math.max(2, Kirigami.Units.gridUnit / 2) Rectangle { id: leftBar - height: headingBackground.height + height: section == "" ? 0 : headingBackground.height width: Kirigami.Units.gridUnit * 1 color: subsurfaceTheme.accentColor + visible: section != "" anchors { left: parent.left } } Rectangle { id: headingBackground - height: Kirigami.Units.gridUnit * 3 + height: section == "" ? 0 : Kirigami.Units.gridUnit * 3 anchors { left: leftBar.right right: parent.right rightMargin: Kirigami.Units.gridUnit * -2 } color: subsurfaceTheme.darkBackgroundColor + visible: section != "" Kirigami.Label { id: sectionText text: { |