summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-14 20:32:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-14 20:32:40 -0700
commitcc319ad8b110beff1e53d1df020bdd153bcadcde (patch)
tree3cd3a9ed3823aa08875dc48b2135f8d3c798c3aa /mobile-widgets/qml
parenta454b4fd1953930729d4391fd84353700b3fcd22 (diff)
downloadsubsurface-cc319ad8b110beff1e53d1df020bdd153bcadcde.tar.gz
QML UI: allow collapsing the open trip
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 6a0e1ba7f..b120ef4d7 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -280,7 +280,10 @@ Kirigami.ScrollablePage {
MouseArea {
anchors.fill: headingBackground
onClicked: {
- activeTrip = section
+ if (activeTrip === section)
+ activeTrip = ""
+ else
+ activeTrip = section
}
}
Controls.Label {
@@ -313,7 +316,10 @@ Kirigami.ScrollablePage {
MouseArea {
anchors.fill: sectionText
onClicked: {
- activeTrip = section
+ if (activeTrip === section)
+ activeTrip = ""
+ else
+ activeTrip = section
}
}
}