mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: allow collapsing the open trip
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a454b4fd19
commit
cc319ad8b1
1 changed files with 8 additions and 2 deletions
|
@ -280,6 +280,9 @@ Kirigami.ScrollablePage {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: headingBackground
|
anchors.fill: headingBackground
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
if (activeTrip === section)
|
||||||
|
activeTrip = ""
|
||||||
|
else
|
||||||
activeTrip = section
|
activeTrip = section
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -313,6 +316,9 @@ Kirigami.ScrollablePage {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: sectionText
|
anchors.fill: sectionText
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
if (activeTrip === section)
|
||||||
|
activeTrip = ""
|
||||||
|
else
|
||||||
activeTrip = section
|
activeTrip = section
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue