TextField: support for passwordCharacter
Use a more modern password character, and expose it to the outside world REVIEW: 104726
This commit is contained in:
parent
9b04155a92
commit
47d42a6d36
@ -170,6 +170,7 @@ FocusScope {
|
|||||||
property alias cursorPosition: textInput.cursorPosition
|
property alias cursorPosition: textInput.cursorPosition
|
||||||
property alias readOnly: textInput.readOnly
|
property alias readOnly: textInput.readOnly
|
||||||
property alias echoMode: textInput.echoMode // Supports TextInput.Normal,TextInput.Password, TextInput.NoEcho, TextInput.PasswordEchoOnEdit
|
property alias echoMode: textInput.echoMode // Supports TextInput.Normal,TextInput.Password, TextInput.NoEcho, TextInput.PasswordEchoOnEdit
|
||||||
|
property alias passwordCharacter: textInput.passwordCharacter
|
||||||
property alias acceptableInput: textInput.acceptableInput // read-only
|
property alias acceptableInput: textInput.acceptableInput // read-only
|
||||||
property alias inputMask: textInput.inputMask
|
property alias inputMask: textInput.inputMask
|
||||||
property alias validator: textInput.validator
|
property alias validator: textInput.validator
|
||||||
@ -297,6 +298,7 @@ FocusScope {
|
|||||||
leftMargin: 2 * base.margins.left
|
leftMargin: 2 * base.margins.left
|
||||||
rightMargin: 2 * base.margins.right + (clearButton.opacity > 0 ? clearButton.width : 0)
|
rightMargin: 2 * base.margins.right + (clearButton.opacity > 0 ? clearButton.width : 0)
|
||||||
}
|
}
|
||||||
|
passwordCharacter: "•"
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
color: theme.textColor
|
color: theme.textColor
|
||||||
enabled: textField.enabled
|
enabled: textField.enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user