mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
WIP: Make dropdown exclusive from each other
This commit is contained in:
parent
ffb8aed4c3
commit
28eaea8426
4 changed files with 230 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue