Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/MainBlock.qml
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 44 | function startLogin() { | |||
---|---|---|---|---|---|
48 | //but more importantly it works round a Qt bug that can trigger if the app is closed with a TextField focused | 48 | //but more importantly it works round a Qt bug that can trigger if the app is closed with a TextField focused | ||
49 | //See https://bugreports.qt.io/browse/QTBUG-55460 | 49 | //See https://bugreports.qt.io/browse/QTBUG-55460 | ||
50 | loginButton.forceActiveFocus(); | 50 | loginButton.forceActiveFocus(); | ||
51 | loginRequest(password); | 51 | loginRequest(password); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | PlasmaComponents.TextField { | 54 | PlasmaComponents.TextField { | ||
55 | id: passwordBox | 55 | id: passwordBox | ||
56 | font.pointSize: 11 | 56 | font.pointSize: theme.defaultFont.pointSize + 1 | ||
57 | Layout.fillWidth: true | 57 | Layout.fillWidth: true | ||
58 | 58 | | |||
59 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") | 59 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") | ||
60 | focus: true | 60 | focus: true | ||
61 | echoMode: TextInput.Password | 61 | echoMode: TextInput.Password | ||
62 | inputMethodHints: Qt.ImhHiddenText | Qt.ImhSensitiveData | Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText | 62 | inputMethodHints: Qt.ImhHiddenText | Qt.ImhSensitiveData | Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText | ||
63 | enabled: !authenticator.graceLocked | 63 | enabled: !authenticator.graceLocked | ||
64 | revealPasswordButtonShown: true | 64 | revealPasswordButtonShown: true | ||
Show All 23 Lines | 87 | onClearPassword: { | |||
88 | passwordBox.forceActiveFocus() | 88 | passwordBox.forceActiveFocus() | ||
89 | passwordBox.selectAll() | 89 | passwordBox.selectAll() | ||
90 | } | 90 | } | ||
91 | } | 91 | } | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | PlasmaComponents.Button { | 94 | PlasmaComponents.Button { | ||
95 | id: loginButton | 95 | id: loginButton | ||
96 | font.pointSize: 11 | 96 | font.pointSize: theme.defaultFont.pointSize + 1 | ||
97 | Layout.fillWidth: true | 97 | Layout.fillWidth: true | ||
98 | 98 | | |||
99 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") | 99 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") | ||
100 | onClicked: startLogin() | 100 | onClicked: startLogin() | ||
101 | } | 101 | } | ||
102 | } | 102 | } |