mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23: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
|
||||
|
||||
font.pixelSize: parent.pixelSize * .8
|
||||
color: dialer.textColor
|
||||
color: parent.color
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ Item {
|
|||
property OfonoSimManager simManager: ofonoSimManager
|
||||
OfonoSimManager {
|
||||
id: ofonoSimManager
|
||||
modemPath: ofonoManager.modems.length > 0 ? ofonoManager.modems[0] : ""
|
||||
}
|
||||
|
||||
OfonoNetworkRegistration {
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ Rectangle {
|
|||
verticalAlignment: Qt.AlignVCenter
|
||||
font.pixelSize: theme.defaultFont.pixelSize
|
||||
color: textColor
|
||||
text: i18n("%1 attempts left", simManager.pinRetries);
|
||||
text: i18n("%1 attempts left", (simManager.pinRetries ? simManager.pinRetries[simManager.pinRequired] : 0));
|
||||
}
|
||||
|
||||
Text {
|
||||
|
|
@ -99,28 +99,26 @@ Rectangle {
|
|||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
DialerButton { id: one; text: "1" }
|
||||
DialerButton { text: "2" }
|
||||
DialerButton { text: "3" }
|
||||
DialerButton { id: one; text: "1"; color: "white"; }
|
||||
DialerButton { text: "2"; color: "white"; }
|
||||
DialerButton { text: "3"; color: "white"; }
|
||||
|
||||
DialerButton { text: "4" }
|
||||
DialerButton { text: "5" }
|
||||
DialerButton { text: "6" }
|
||||
DialerButton { text: "4"; color: "white"; }
|
||||
DialerButton { text: "5"; color: "white"; }
|
||||
DialerButton { text: "6"; color: "white"; }
|
||||
|
||||
DialerButton { text: "7" }
|
||||
DialerButton { text: "8" }
|
||||
DialerButton { text: "9" }
|
||||
DialerButton { text: "7"; color: "white"; }
|
||||
DialerButton { text: "8"; color: "white"; }
|
||||
DialerButton { text: "9"; color: "white"; }
|
||||
|
||||
DialerButton { text: "*"; }
|
||||
DialerButton { text: "0"; sub: "+"; }
|
||||
DialerButton { text: "*"; color: "white"; }
|
||||
DialerButton { text: "0"; sub: "+"; color: "white"; }
|
||||
DialerButton {
|
||||
text: "#"
|
||||
color: "white"
|
||||
callback: function () {
|
||||
simManager.enterPin(simManager.pinRequired, pinLabel.text)
|
||||
|
||||
for (var i in simManager.pinRetries) {
|
||||
print("Retries object status:" + i + " " + simManager.pinRetries[i]);
|
||||
}
|
||||
pinLabel.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue