@@ -121,108 +121,94 @@ Showable {
121 opacity: root.darkenBackground
121 opacity: root.darkenBackground
124− MouseArea {
124+ Loader {
125− anchors.fill: root
125+ id: pinPadLoader
126− onClicked: {
126+ objectName: "pinPadLoader"
127− if (pinPadLoader.item)
128− pinPadLoader.item.forceActiveFocus()
134 anchors.fill: parent
127 anchors.fill: parent
138− objectName: "pinPadLoader"
139− anchors.fill: parent
140− property bool resetting: false
128+ property bool resetting: false
141− property bool waiting: false
129+ property bool waiting: false
142− property bool showWrongText: false
130+ property bool showWrongText: false
144− source: {
133+ source: {
145− if (resetting || !root.required) {
134+ if (resetting || !root.required) {
146− return ""
135+ return ""
147− } else if (root.delayMinutes > 0) {
136+ } else if (root.delayMinutes > 0) {
148− return "DelayedLockscreen.qml"
137+ return "DelayedLockscreen.qml"
149− } else if (root.alphaNumeric) {
138+ } else if (root.alphaNumeric) {
150− return "PassphraseLockscreen.qml"
139+ return "PassphraseLockscreen.qml"
151− } else {
140+ } else {
152− return "PinLockscreen.qml"
141+ return "PinLockscreen.qml"
157− showWrongText = false
158− if (loaderScope.activeFocus && pinPadLoader.item)
159− pinPadLoader.item.forceActiveFocus()
146+ showWrongText = false
162− Connections {
149+ Connections {
163− target: pinPadLoader.item
150+ target: pinPadLoader.item
166− pinPadLoader.waiting = true
167− root.entered(passphrase);
170− onCancel: {
152+ onEntered: {
171− root.cancel()
153+ pinPadLoader.waiting = true
172− }
154+ root.entered(passphrase);
175− Binding {
157+ onCancel: {
176− target: pinPadLoader.item
158+ root.cancel()
177− property: "minPinLength"
178− value: root.minPinLength
181− target: pinPadLoader.item
182− property: "maxPinLength"
183− value: root.maxPinLength
186− target: pinPadLoader.item
187− property: "infoText"
188− value: root.infoText
191− target: pinPadLoader.item
192− property: "retryText"
193− value: root.retryText
196− target: pinPadLoader.item
197− property: "errorText"
198− value: pinPadLoader.showWrongText ? root.errorText : ""
201− target: pinPadLoader.item
202− property: "entryEnabled"
203− value: !pinPadLoader.waiting
206− target: pinPadLoader.item
207− property: "alphaNumeric"
208− value: root.alphaNumeric
211− target: pinPadLoader.item
212− property: "delayMinutes"
213− value: root.delayMinutes
216− target: pinPadLoader.item
217− property: "showCancelButton"
218− value: root.showCancelButton
221− target: pinPadLoader.item
222− property: "foregroundColor"
223− value: root.foregroundColor
163+ target: pinPadLoader.item
164+ property: "minPinLength"
165+ value: root.minPinLength
168+ target: pinPadLoader.item
169+ property: "maxPinLength"
170+ value: root.maxPinLength
173+ target: pinPadLoader.item
174+ property: "infoText"
175+ value: root.infoText
178+ target: pinPadLoader.item
179+ property: "retryText"
180+ value: root.retryText
183+ target: pinPadLoader.item
184+ property: "errorText"
185+ value: pinPadLoader.showWrongText ? root.errorText : ""
188+ target: pinPadLoader.item
189+ property: "entryEnabled"
190+ value: !pinPadLoader.waiting
193+ target: pinPadLoader.item
194+ property: "alphaNumeric"
195+ value: root.alphaNumeric
198+ target: pinPadLoader.item
199+ property: "delayMinutes"
200+ value: root.delayMinutes
203+ target: pinPadLoader.item
204+ property: "showCancelButton"
205+ value: root.showCancelButton
208+ target: pinPadLoader.item
209+ property: "foregroundColor"
210+ value: root.foregroundColor