Skip to content

Commit fdcf35c

Browse files
committed
[Controls] ExpandableGroup: Fix MouseArea on the header of groups
1 parent fc5e85a commit fdcf35c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

meshroom/ui/qml/Controls/ExpandableGroup.qml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,24 @@ GroupBox {
2222
topPadding: label.height + padding
2323
background: Item {}
2424

25+
MouseArea {
26+
parent: paneLabel
27+
anchors.fill: parent
28+
onClicked: function(mouse) {
29+
expandButton.checked = !expandButton.checked
30+
}
31+
}
32+
2533
label: Pane {
34+
id: paneLabel
35+
padding: 2
36+
width: root.width
37+
2638
background: Rectangle {
2739
id: labelBg
2840
color: palette.base
2941
opacity: 0.8
30-
31-
MouseArea {
32-
anchors.fill: parent
33-
onClicked: {
34-
expandButton.checked = !expandButton.checked
35-
}
36-
}
3742
}
38-
padding: 2
39-
width: root.width
4043

4144
RowLayout {
4245
width: parent.width

0 commit comments

Comments
 (0)