@@ -25,7 +25,6 @@ Column {
25 spacing: units.gu(3.5)
25 spacing: units.gu(3.5)
27 property alias placeholderText: pinentryField.placeholderText
27 property alias placeholderText: pinentryField.placeholderText
28− property alias wrongPlaceholderText: pinentryField.wrongPlaceholderText
29 property int padWidth: units.gu(34)
28 property int padWidth: units.gu(34)
30 property int padHeight: units.gu(28)
29 property int padHeight: units.gu(28)
31 property int minPinLength: -1
30 property int minPinLength: -1
@@ -35,10 +34,10 @@ Column {
35 signal cancel()
34 signal cancel()
37 property bool entryEnabled: true
36 property bool entryEnabled: true
37+ property bool waiting: false
39 function clear(playAnimation) {
39 function clear(playAnimation) {
40 pinentryField.text = "";
40 pinentryField.text = "";
41− pinentryFieldPlaceHolder.text = playAnimation ? wrongPlaceholderText : placeholderText
42 if (playAnimation) {
41 if (playAnimation) {
43 wrongPasswordAnimation.start();
42 wrongPasswordAnimation.start();
@@ -59,7 +58,6 @@ Column {
59 radius: "medium"
58 radius: "medium"
60 property string text: ""
59 property string text: ""
61 property string placeholderText: ""
60 property string placeholderText: ""
62− property string wrongPlaceholderText: ""
64 function appendChar(character) {
62 function appendChar(character) {
65 if (root.maxPinLength == -1 || pinentryField.text.length < root.maxPinLength) {
63 if (root.maxPinLength == -1 || pinentryField.text.length < root.maxPinLength) {
@@ -77,6 +75,11 @@ Column {
80+ anchors.centerIn: parent
81+ running: root.waiting
81 id: pinentryFieldLabel
84 id: pinentryFieldLabel
82 anchors.centerIn: parent
85 anchors.centerIn: parent
@@ -86,6 +89,7 @@ Column {
86 font.pixelSize: units.dp(44)
89 font.pixelSize: units.dp(44)
87 color: "#f3f3e7"
90 color: "#f3f3e7"
88 opacity: 0.6
91 opacity: 0.6
92+ visible: !spinner.running
91 id: pinentryFieldPlaceHolder
95 id: pinentryFieldPlaceHolder
@@ -95,7 +99,7 @@ Column {
95 color: "#f3f3e7"
99 color: "#f3f3e7"
96 opacity: 0.6
100 opacity: 0.6
97 text: parent.placeholderText
101 text: parent.placeholderText
98− visible: pinentryFieldLabel.text.length == 0
102+ visible: !spinner.running && pinentryFieldLabel.text.length == 0
@@ -109,7 +113,7 @@ Column {
109 bottom: parent.bottom
113 bottom: parent.bottom
110 bottomMargin: units.gu(1)
114 bottomMargin: units.gu(1)
112− visible: !priv.autoConfirm
116+ visible: !spinner.running && entryEnabled && !priv.autoConfirm
113 width: height
117 width: height
114 name: "erase"
118 name: "erase"
115 color: "#f3f3e7"
119 color: "#f3f3e7"