on xenial help sign in
fix formatting issues
07cd494Michael Zanetti
Greeter/PinLockscreen.qml+39−40
@@ -53,7 +53,7 @@ Column {
53 onTextChanged: {
53 onTextChanged: {
54 pinentryFieldLabel.text = "";
54 pinentryFieldLabel.text = "";
55 for (var i = 0; i < text.length; ++i) {
55 for (var i = 0; i < text.length; ++i) {
56− pinentryFieldLabel.text += "•"
56+ pinentryFieldLabel.text += "•";
57 }
57 }
58 if (text.length === root.pinLength) {
58 if (text.length === root.pinLength) {
59 root.entered(text);
59 root.entered(text);
@@ -122,55 +122,54 @@ Column {
122 rotation: -90
122 rotation: -90
123 }
123 }
124
124
125− Grid {
125+ Grid {
126− anchors {
126+ anchors {
127− left: parent.left
127+ left: parent.left
128− right: parent.right
128+ right: parent.right
129− margins: (parent.width - root.padWidth) / 2
129+ margins: (parent.width - root.padWidth) / 2
130− }
130+ }
131
131
132− columns: 3
132+ columns: 3
133
133
134− Repeater {
134+ Repeater {
135− model: 9
135+ model: 9
136
136
137− PinPadButton {
137+ PinPadButton {
138− objectName: "pinPadButton" + (index + 1)
138+ objectName: "pinPadButton" + (index + 1)
139− width: root.padWidth / 3
139+ width: root.padWidth / 3
140− height: root.padHeight / 4
140+ height: root.padHeight / 4
141− text: index + 1
141+ text: index + 1
142
142
143− onClicked: {
143+ onClicked: {
144− pinentryField.text = pinentryField.text + text
144+ pinentryField.text = pinentryField.text + text;
145+ }
145 }
146 }
146 }
147 }
147− }
148
148
149− PinPadButton {
149+ PinPadButton {
150− objectName: "pinPadButtonBack"
150+ objectName: "pinPadButtonBack"
151− width: root.padWidth / 3
151+ width: root.padWidth / 3
152− height: root.padHeight / 4
152+ height: root.padHeight / 4
153− iconName: "back"
153+ iconName: "back"
154− onClicked: root.cancel();
154+ onClicked: root.cancel();
155+ }
155
156
156− }
157− PinPadButton {
157+ PinPadButton {
158− objectName: "pinPadButton0"
158+ objectName: "pinPadButton0"
159− width: root.padWidth / 3
159+ width: root.padWidth / 3
160− height: root.padHeight / 4
160+ height: root.padHeight / 4
161− text: "0"
161+ text: "0"
162− onClicked: pinentryField.text = pinentryField.text + text
162+ onClicked: pinentryField.text = pinentryField.text + text
163+ }
163
164
165+ PinPadButton {
166+ objectName: "pinPadButtonErase"
167+ width: root.padWidth / 3
168+ height: root.padHeight / 4
169+ iconName: "erase"
170+ onClicked: pinentryField.text = pinentryField.text.substring(0, pinentryField.text.length-1)
171+ }
164 }
172 }
165− PinPadButton {
166− objectName: "pinPadButtonErase"
167− width: root.padWidth / 3
168− height: root.padHeight / 4
169− iconName: "erase"
170− onClicked: pinentryField.text = pinentryField.text.substring(0, pinentryField.text.length-1)
171− }
172− }
173−
174 }
173 }
175
174
176 WrongPasswordAnimation {
175 WrongPasswordAnimation {