fix hide/unhide password
This commit is contained in:
parent
3021066180
commit
3a62f1f20b
1 changed files with 10 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ PageType {
|
||||||
rightButtonClickedOnEnter: true
|
rightButtonClickedOnEnter: true
|
||||||
|
|
||||||
clickedFunc: function () {
|
clickedFunc: function () {
|
||||||
clickedHandler
|
clickedHandler()
|
||||||
}
|
}
|
||||||
|
|
||||||
textField.onFocusChanged: {
|
textField.onFocusChanged: {
|
||||||
|
|
@ -112,6 +112,15 @@ PageType {
|
||||||
var _currentItem = listView.itemAtIndex(_currentIndex).children[0]
|
var _currentItem = listView.itemAtIndex(_currentIndex).children[0]
|
||||||
listView.model[_currentIndex].textFieldText = _currentItem.textFieldText.replace(/^\s+|\s+$/g, '')
|
listView.model[_currentIndex].textFieldText = _currentItem.textFieldText.replace(/^\s+|\s+$/g, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textField.onTextChanged: {
|
||||||
|
var _currentIndex = listView.currentIndex
|
||||||
|
textFieldText = textField.text
|
||||||
|
|
||||||
|
if (_currentIndex === vars.secretDataIndex) {
|
||||||
|
buttonImageSource = textFieldText !== "" ? (hideText ? "qrc:/images/controls/eye.svg" : "qrc:/images/controls/eye-off.svg") : ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue