QML UI: allow collapsing the open trip

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-04-14 20:32:40 -07:00
parent a454b4fd19
commit cc319ad8b1

View file

@ -280,6 +280,9 @@ Kirigami.ScrollablePage {
MouseArea {
anchors.fill: headingBackground
onClicked: {
if (activeTrip === section)
activeTrip = ""
else
activeTrip = section
}
}
@ -313,6 +316,9 @@ Kirigami.ScrollablePage {
MouseArea {
anchors.fill: sectionText
onClicked: {
if (activeTrip === section)
activeTrip = ""
else
activeTrip = section
}
}