mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
delete button for the pin entry
This commit is contained in:
parent
c390a857d3
commit
29138e0e3a
1 changed files with 16 additions and 5 deletions
|
|
@ -128,6 +128,8 @@ PlasmaCore.ColorScope {
|
||||||
text: simManager.pinRetries && simManager.pinRetries[simManager.pinRequired] ? i18n("%1 attempts left", simManager.pinRetries[simManager.pinRequired]) : "";
|
text: simManager.pinRetries && simManager.pinRetries[simManager.pinRequired] ? i18n("%1 attempts left", simManager.pinRetries[simManager.pinRequired]) : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
id: pinLabel
|
id: pinLabel
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -135,6 +137,15 @@ PlasmaCore.ColorScope {
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
font.pixelSize: one.font.pixelSize
|
font.pixelSize: one.font.pixelSize
|
||||||
}
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
visible: pinLabel.text != ""
|
||||||
|
iconSource: "edit-clear"
|
||||||
|
width: height
|
||||||
|
onClicked: {
|
||||||
|
pinLabel.text = pinLabel.text.substring(0, pinLabel.text.length - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Grid {
|
Grid {
|
||||||
id: pad
|
id: pad
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue