@@ -38,13 +38,6 @@ AbstractButton {
39 property bool terminationModeEnabled: false
39 property bool terminationModeEnabled: false
42− if (terminationModeEnabled)
43− requestedApplicationTermination(application)
45− requestedApplicationActivation(application)
48 onPressAndHold: {
41 onPressAndHold: {
49 if (terminationModeEnabled) {
42 if (terminationModeEnabled) {
50 requestedActivationMode()
43 requestedActivationMode()
@@ -133,5 +126,19 @@ AbstractButton {
133 width: units.gu(6)
126 width: units.gu(6)
134 id: closeIcon
127 id: closeIcon
135 enabled: root.terminationModeEnabled
128 enabled: root.terminationModeEnabled
131+ anchors.fill: parent
132+ anchors.left: units.gu(1)
133+ anchors.right: units.gu(1)
134+ anchors.top: units.gu(1)
135+ anchors.bottom: units.gu(1)
137+ if (terminationModeEnabled)
138+ requestedApplicationTermination(application)
140+ requestedApplicationActivation(application)