mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-26 14:24:45 +00:00
Prevent password from being visible
When the user enters the PIN of the SIM, the password is displayed in cleartext. This change masks visible characters with password characters. Differential Revision: https://phabricator.kde.org/D19076
This commit is contained in:
parent
d9c6437670
commit
f1de836216
1 changed files with 5 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
import QtQuick.Controls 2.5 as Controls
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
import org.kde.plasma.components 2.0 as PlasmaComponents
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||||
import MeeGo.QOfono 0.2
|
import MeeGo.QOfono 0.2
|
||||||
|
|
@ -130,12 +131,14 @@ PlasmaCore.ColorScope {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
PlasmaComponents.Label {
|
Controls.TextField {
|
||||||
id: pinLabel
|
id: pinLabel
|
||||||
|
readOnly: true
|
||||||
|
echoMode: TextInput.Password
|
||||||
|
activeFocusOnPress: false
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: Qt.AlignRight
|
horizontalAlignment: Qt.AlignRight
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
font.pixelSize: one.font.pixelSize
|
|
||||||
}
|
}
|
||||||
PlasmaComponents.Button {
|
PlasmaComponents.Button {
|
||||||
visible: pinLabel.text != ""
|
visible: pinLabel.text != ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue