on xenial help sign in
fix formatting issues
commit07cd494dd854709a53d4d6f86685c8739ab1c3fc authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 30 Jul 2013, 12:24 (13 years ago) parent650f306
1 file changed+39−40
Greeter/PinLockscreen.qml+39−40
Greeter/PinLockscreen.qml+39−40
@@ -53,7 +53,7 @@ Column {
5353 onTextChanged: {
5454 pinentryFieldLabel.text = "";
5555 for (var i = 0; i < text.length; ++i) {
56− pinentryFieldLabel.text += "•"
56+ pinentryFieldLabel.text += "•";
5757 }
5858 if (text.length === root.pinLength) {
5959 root.entered(text);
@@ -122,55 +122,54 @@ Column {
122122 rotation: -90
123123 }
124124
125− Grid {
126− anchors {
127− left: parent.left
128− right: parent.right
129− margins: (parent.width - root.padWidth) / 2
130− }
125+ Grid {
126+ anchors {
127+ left: parent.left
128+ right: parent.right
129+ margins: (parent.width - root.padWidth) / 2
130+ }
131131
132− columns: 3
132+ columns: 3
133133
134− Repeater {
135− model: 9
134+ Repeater {
135+ model: 9
136136
137− PinPadButton {
138− objectName: "pinPadButton" + (index + 1)
139− width: root.padWidth / 3
140− height: root.padHeight / 4
141− text: index + 1
137+ PinPadButton {
138+ objectName: "pinPadButton" + (index + 1)
139+ width: root.padWidth / 3
140+ height: root.padHeight / 4
141+ text: index + 1
142142
143− onClicked: {
144− pinentryField.text = pinentryField.text + text
143+ onClicked: {
144+ pinentryField.text = pinentryField.text + text;
145+ }
145146 }
146147 }
147− }
148148
149− PinPadButton {
150− objectName: "pinPadButtonBack"
151− width: root.padWidth / 3
152− height: root.padHeight / 4
153− iconName: "back"
154− onClicked: root.cancel();
149+ PinPadButton {
150+ objectName: "pinPadButtonBack"
151+ width: root.padWidth / 3
152+ height: root.padHeight / 4
153+ iconName: "back"
154+ onClicked: root.cancel();
155+ }
155156
156− }
157− PinPadButton {
158− objectName: "pinPadButton0"
159− width: root.padWidth / 3
160− height: root.padHeight / 4
161− text: "0"
162− onClicked: pinentryField.text = pinentryField.text + text
157+ PinPadButton {
158+ objectName: "pinPadButton0"
159+ width: root.padWidth / 3
160+ height: root.padHeight / 4
161+ text: "0"
162+ onClicked: pinentryField.text = pinentryField.text + text
163+ }
163164
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+ }
164172 }
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−
174173 }
175174
176175 WrongPasswordAnimation {