on xenial help sign in
improve the pin lockscreen
d25b519Michael Zanetti
qml/Components/PinLockscreen.qml+10−5
@@ -144,12 +144,13 @@ FocusScope {
144
144
145 AbstractButton {
145 AbstractButton {
146 objectName: "backspaceIcon"
146 objectName: "backspaceIcon"
147− anchors { right: parent.right; top: parent.top; bottom: parent.bottom }
147+ anchors { right: parent.right; top: parent.top; bottom: parent.bottom; margins: -units.gu(1) }
148 width: height
148 width: height
149 enabled: root.entryEnabled
149 enabled: root.entryEnabled
150
150
151 Icon {
151 Icon {
152 anchors.fill: parent
152 anchors.fill: parent
153+ anchors.margins: units.gu(1)
153 name: "erase"
154 name: "erase"
154 color: root.foregroundColor
155 color: root.foregroundColor
155 }
156 }
@@ -196,8 +197,10 @@ FocusScope {
196 pinentryField.text.length < root.maxPinLength ||
197 pinentryField.text.length < root.maxPinLength ||
197 pinentryField.incorrectOverride)
198 pinentryField.incorrectOverride)
198
199
199− onClicked: {
200+ onPressedChanged: {
201+ if (!pressed) {
200− pinentryField.appendNumber(index + 1)
202+ pinentryField.appendNumber(index + 1)
203+ }
201 }
204 }
202 }
205 }
203 }
206 }
@@ -214,8 +217,10 @@ FocusScope {
214 pinentryField.text.length < root.maxPinLength ||
217 pinentryField.text.length < root.maxPinLength ||
215 pinentryField.incorrectOverride)
218 pinentryField.incorrectOverride)
216
219
217− onClicked: {
220+ onPressedChanged: {
221+ if (!pressed) {
218− pinentryField.appendNumber(0)
222+ pinentryField.appendNumber(0)
223+ }
219 }
224 }
220 }
225 }
221 Item {
226 Item {