Commit 7f747466 authored by Bhushan Shah's avatar Bhushan Shah 📱 Committed by Devin Lin
Browse files

password: allow text passwords

starting from Plasma 5.22 lockscreen allows text password, so allow to
set them too.
parent 5219c71f
Pipeline #71632 passed with stage
in 5 minutes and 42 seconds
......@@ -13,11 +13,6 @@ import org.kde.kcm 1.2
SimpleKCM {
title: i18n("Change Lockscreen Pin")
RegExpValidator {
id: pinValidator
regExp: /[0-9]+/
}
ColumnLayout {
Kirigami.InlineMessage {
type: Kirigami.MessageType.Warning
......@@ -29,17 +24,13 @@ SimpleKCM {
Kirigami.FormLayout {
QQC2.TextField {
id: pin
Kirigami.FormData.label: i18n("New Pin (numbers only):")
Kirigami.FormData.label: i18n("New Pin:")
echoMode: TextInput.PasswordEchoOnEdit
validator: pinValidator
inputMethodHints: Qt.ImhDigitsOnly
}
QQC2.TextField {
id: confirmPin
Kirigami.FormData.label: i18n("Confirm new Pin:")
echoMode: TextInput.PasswordEchoOnEdit
validator: pinValidator
inputMethodHints: Qt.ImhDigitsOnly
}
QQC2.Button {
text: i18n("Apply")
......
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