on xenial help sign in
Only enable the InverseMouseArea when editing and add some FIXMEs around it.
b266b3aMichał Sawicz
Dash/Apps/AppReviews.qml+6−1
@@ -34,11 +34,13 @@ Column {
34 name: ""
34 name: ""
35 PropertyChanges { target: sendButton; opacity: 0; }
35 PropertyChanges { target: sendButton; opacity: 0; }
36 PropertyChanges { target: reviewField; width: root.width; }
36 PropertyChanges { target: reviewField; width: root.width; }
37+ PropertyChanges { target: inverseArea; enabled: false }
37 },
38 },
38 State {
39 State {
39 name: "editing"
40 name: "editing"
40 PropertyChanges { target: reviewField; width: (root.width - row.spacing - sendButton.width); }
41 PropertyChanges { target: reviewField; width: (root.width - row.spacing - sendButton.width); }
41 PropertyChanges { target: sendButton; opacity: 1; }
42 PropertyChanges { target: sendButton; opacity: 1; }
43+ PropertyChanges { target: inverseArea; enabled: true }
42 }
44 }
43 ]
45 ]
44
46
@@ -75,6 +77,7 @@ Column {
75 spacing: units.gu(1)
77 spacing: units.gu(1)
76 width: root.width
78 width: root.width
77
79
80+ // FIXME: needs to react to Qt.inputMethod geometry
78 TextArea {
81 TextArea {
79 id: reviewField
82 id: reviewField
80 objectName: "reviewField"
83 objectName: "reviewField"
@@ -93,9 +96,11 @@ Column {
93 }
96 }
94 }
97 }
95
98
99+ // FIXME: not active when in wide mode
96 InverseMouseArea {
100 InverseMouseArea {
101+ id: inverseArea
97 anchors.fill: parent
102 anchors.fill: parent
98− propagateComposedEvents: true
103+ enabled: false
99 onPressed: {
104 onPressed: {
100 reviewField.focus = false;
105 reviewField.focus = false;
101 root.state = "";
106 root.state = "";