mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
pin entry should work
This commit is contained in:
parent
992f3fecd2
commit
116c8fb61b
3 changed files with 16 additions and 17 deletions
|
|
@ -43,6 +43,6 @@ Text {
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
|
|
||||||
font.pixelSize: parent.pixelSize * .8
|
font.pixelSize: parent.pixelSize * .8
|
||||||
color: dialer.textColor
|
color: parent.color
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ Item {
|
||||||
property OfonoSimManager simManager: ofonoSimManager
|
property OfonoSimManager simManager: ofonoSimManager
|
||||||
OfonoSimManager {
|
OfonoSimManager {
|
||||||
id: ofonoSimManager
|
id: ofonoSimManager
|
||||||
|
modemPath: ofonoManager.modems.length > 0 ? ofonoManager.modems[0] : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
OfonoNetworkRegistration {
|
OfonoNetworkRegistration {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ Rectangle {
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
font.pixelSize: theme.defaultFont.pixelSize
|
font.pixelSize: theme.defaultFont.pixelSize
|
||||||
color: textColor
|
color: textColor
|
||||||
text: i18n("%1 attempts left", simManager.pinRetries);
|
text: i18n("%1 attempts left", (simManager.pinRetries ? simManager.pinRetries[simManager.pinRequired] : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
@ -99,28 +99,26 @@ Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
DialerButton { id: one; text: "1" }
|
DialerButton { id: one; text: "1"; color: "white"; }
|
||||||
DialerButton { text: "2" }
|
DialerButton { text: "2"; color: "white"; }
|
||||||
DialerButton { text: "3" }
|
DialerButton { text: "3"; color: "white"; }
|
||||||
|
|
||||||
DialerButton { text: "4" }
|
DialerButton { text: "4"; color: "white"; }
|
||||||
DialerButton { text: "5" }
|
DialerButton { text: "5"; color: "white"; }
|
||||||
DialerButton { text: "6" }
|
DialerButton { text: "6"; color: "white"; }
|
||||||
|
|
||||||
DialerButton { text: "7" }
|
DialerButton { text: "7"; color: "white"; }
|
||||||
DialerButton { text: "8" }
|
DialerButton { text: "8"; color: "white"; }
|
||||||
DialerButton { text: "9" }
|
DialerButton { text: "9"; color: "white"; }
|
||||||
|
|
||||||
DialerButton { text: "*"; }
|
DialerButton { text: "*"; color: "white"; }
|
||||||
DialerButton { text: "0"; sub: "+"; }
|
DialerButton { text: "0"; sub: "+"; color: "white"; }
|
||||||
DialerButton {
|
DialerButton {
|
||||||
text: "#"
|
text: "#"
|
||||||
|
color: "white"
|
||||||
callback: function () {
|
callback: function () {
|
||||||
simManager.enterPin(simManager.pinRequired, pinLabel.text)
|
simManager.enterPin(simManager.pinRequired, pinLabel.text)
|
||||||
|
pinLabel.text = "";
|
||||||
for (var i in simManager.pinRetries) {
|
|
||||||
print("Retries object status:" + i + " " + simManager.pinRetries[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue