mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 02:04:45 +00:00
Pin dialog shows
seems to still not be possible to know how many attempts are left
This commit is contained in:
parent
422695bae1
commit
9ee815108d
2 changed files with 10 additions and 23 deletions
|
|
@ -86,32 +86,14 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
|
||||||
id: dialerOverlay
|
|
||||||
function open() {
|
|
||||||
source = Qt.resolvedUrl("Dialer.qml")
|
|
||||||
dialerOverlay.item.open();
|
|
||||||
}
|
|
||||||
function close() {
|
|
||||||
dialerOverlay.item.close();
|
|
||||||
}
|
|
||||||
anchors {
|
|
||||||
left: parent.left
|
|
||||||
top: statusPanel.bottom
|
|
||||||
right: parent.right
|
|
||||||
bottom: parent.bottom
|
|
||||||
}
|
|
||||||
z: 20
|
|
||||||
}
|
|
||||||
Loader {
|
Loader {
|
||||||
id: pinOverlay
|
id: pinOverlay
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
fill: parent
|
||||||
top: statusPanel.bottom
|
topMargin: containment.availableScreenRect.y
|
||||||
right: parent.right
|
bottomMargin: parent.height - containment.availableScreenRect.height - containment.availableScreenRect.y
|
||||||
bottom: parent.bottom
|
|
||||||
}
|
}
|
||||||
z: 21
|
z: 222
|
||||||
source: Qt.resolvedUrl("Pin.qml")
|
source: Qt.resolvedUrl("Pin.qml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,14 @@ import "../components"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: pinScreen
|
id: pinScreen
|
||||||
|
width:1000
|
||||||
|
height:1900
|
||||||
|
//anchors.fill: parent
|
||||||
|
|
||||||
color: "black"
|
color: "black"
|
||||||
opacity: 0.8
|
opacity: 0.8
|
||||||
visible: simManager.pinRequired != OfonoSimManager.NoPin
|
visible: simManager.pinRequired != OfonoSimManager.NoPin
|
||||||
|
//visible: true
|
||||||
property OfonoSimManager simManager: ofonoSimManager
|
property OfonoSimManager simManager: ofonoSimManager
|
||||||
|
|
||||||
OfonoManager {
|
OfonoManager {
|
||||||
|
|
@ -123,7 +128,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 ? simManager.pinRetries[simManager.pinRequired] : 0));
|
text: /*i18n("%1 attempts left", (simManager.pinRetries ? simManager.pinRetries[simManager.pinRequired] : 0));*/ simManager.pinRetries[simManager.pinRequired] +"--"+ simManager.pinRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue