Commit 29138e0e authored by Marco Martin's avatar Marco Martin

delete button for the pin entry

parent c390a857
......@@ -128,12 +128,23 @@ PlasmaCore.ColorScope {
text: simManager.pinRetries && simManager.pinRetries[simManager.pinRequired] ? i18n("%1 attempts left", simManager.pinRetries[simManager.pinRequired]) : "";
}
PlasmaComponents.Label {
id: pinLabel
RowLayout {
Layout.fillWidth: true
horizontalAlignment: Qt.AlignRight
verticalAlignment: Qt.AlignVCenter
font.pixelSize: one.font.pixelSize
PlasmaComponents.Label {
id: pinLabel
Layout.fillWidth: true
horizontalAlignment: Qt.AlignRight
verticalAlignment: Qt.AlignVCenter
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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment