QML UI: allow collapsing the open trip
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a454b4fd19
commit
cc319ad8b1
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user