WIP: Make dropdown exclusive from each other

This commit is contained in:
Lipu Fei 2019-03-06 15:12:05 +01:00
parent ffb8aed4c3
commit 28eaea8426
4 changed files with 230 additions and 7 deletions

View file

@ -34,6 +34,8 @@ Cura.RoundedRectangle
// If the content is shown
property bool contentShown: false
signal clicked()
MouseArea
{
anchors.fill: parent
@ -41,7 +43,10 @@ Cura.RoundedRectangle
onEntered: base.hovered = true
onExited: base.hovered = false
onClicked: base.contentShown = !base.contentShown
onClicked: {
base.contentShown = !base.contentShown
base.clicked()
}
}
Label