allow selecting iteoms in spread by clicking the icon
commit0f5a760ed4f59dc28242a32fba7c1777d60b0468
authorMichael Zanetti <michael.zanetti@canonical.com>
dateThu 8 Sep 2016, 18:21 (10 years ago)
parentec51a1a
qml/Stage/Stage.qml+5
@@ -1425,6 +1425,11 @@ AbstractStage {
14251425 opacity: 0
14261426 z: 1
14271427 visible: opacity > 0
1428+
1429+ onClicked: {
1430+ spreadItem.highlightedIndex = index;
1431+ priv.goneToSpread = false;
1432+ }
14281433 }
14291434
14301435 Image {
qml/Stage/WindowInfoItem.qml+7
@@ -12,6 +12,8 @@ Item {
1212 property real iconMargin: (height - titleLabel.height) * 0.25
1313 property real labelMargin: (height - titleLabel.height) * 0.1
1414
15+ signal clicked()
16+
1517 ProportionalShape {
1618 id: iconShape
1719 anchors {
@@ -30,6 +32,11 @@ Item {
3032 }
3133 }
3234
35+ MouseArea {
36+ anchors.fill: iconShape
37+ onClicked: root.clicked()
38+ }
39+
3340 Label {
3441 id: titleLabel
3542 anchors {