diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-04-14 20:32:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-14 20:32:40 -0700 |
commit | cc319ad8b110beff1e53d1df020bdd153bcadcde (patch) | |
tree | 3cd3a9ed3823aa08875dc48b2135f8d3c798c3aa | |
parent | a454b4fd1953930729d4391fd84353700b3fcd22 (diff) | |
download | subsurface-cc319ad8b110beff1e53d1df020bdd153bcadcde.tar.gz |
QML UI: allow collapsing the open trip
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 10 |
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 } } } |