IndicatorRepresentation: allow to click in the whole item to change check status
Using a ListItem instead of a Rectangle + MouseArea.
commit8e760e540e0485a8e3e75746987714ed324c1843
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
dateWed 15 Jun 2016, 17:41 (10 years ago)
parent86b9a9c
qml/Panel/Indicators/client/IndicatorRepresentation.qml+2−1
@@ -34,7 +34,7 @@ Page {
3434
3535 anchors.fill: parent
3636
37− Rectangle {
37+ ListItem {
3838 color: theme.palette.highlighted.background
3939 id: visualCheckItem
4040
@@ -45,6 +45,7 @@ Page {
4545 }
4646
4747 height: selectorLayout.height
48+ onClicked: visualCheck.checked = !visualCheck.checked
4849
4950 ListItemLayout {
5051 id: selectorLayout