on xenial help sign in
Only enable the InverseMouseArea when editing and add some FIXMEs around it.
commitb266b3a7c495226bd8e6e6b8977d506abf74acaa authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 9 Aug 2013, 11:18 (13 years ago) parent2de0d76
1 file changed+6−1
Dash/Apps/AppReviews.qml+6−1
Dash/Apps/AppReviews.qml+6−1
@@ -34,11 +34,13 @@ Column {
3434 name: ""
3535 PropertyChanges { target: sendButton; opacity: 0; }
3636 PropertyChanges { target: reviewField; width: root.width; }
37+ PropertyChanges { target: inverseArea; enabled: false }
3738 },
3839 State {
3940 name: "editing"
4041 PropertyChanges { target: reviewField; width: (root.width - row.spacing - sendButton.width); }
4142 PropertyChanges { target: sendButton; opacity: 1; }
43+ PropertyChanges { target: inverseArea; enabled: true }
4244 }
4345 ]
4446
@@ -75,6 +77,7 @@ Column {
7577 spacing: units.gu(1)
7678 width: root.width
7779
80+ // FIXME: needs to react to Qt.inputMethod geometry
7881 TextArea {
7982 id: reviewField
8083 objectName: "reviewField"
@@ -93,9 +96,11 @@ Column {
9396 }
9497 }
9598
99+ // FIXME: not active when in wide mode
96100 InverseMouseArea {
101+ id: inverseArea
97102 anchors.fill: parent
98− propagateComposedEvents: true
103+ enabled: false
99104 onPressed: {
100105 reviewField.focus = false;
101106 root.state = "";