Commit f1de8362 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

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
parent d9c64376
......@@ -20,6 +20,7 @@
import QtQuick 2.0
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.components 2.0 as PlasmaComponents
import MeeGo.QOfono 0.2
......@@ -130,12 +131,14 @@ PlasmaCore.ColorScope {
RowLayout {
Layout.fillWidth: true
PlasmaComponents.Label {
Controls.TextField {
id: pinLabel
readOnly: true
echoMode: TextInput.Password
activeFocusOnPress: false
Layout.fillWidth: true
horizontalAlignment: Qt.AlignRight
verticalAlignment: Qt.AlignVCenter
font.pixelSize: one.font.pixelSize
}
PlasmaComponents.Button {
visible: pinLabel.text != ""
......
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