qml: update deprecated syntax (#14)

This commit is contained in:
Rayhan Kafi Pratama 2024-11-26 01:07:52 +07:00 committed by GitHub
parent 3ccff047e2
commit d94cbabd3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,10 +80,10 @@ ApplicationWindow {
Connections {
target: hpa
onFocusField: () => {
function onFocusField() {
passwordField.focus = true;
}
onBlockInput: (block) => {
function onBlockInput(block) {
passwordField.readOnly = block;
if (!block) {
passwordField.focus = true;
@ -105,7 +105,7 @@ ApplicationWindow {
Connections {
target: hpa
onSetErrorString: (e) => {
function onSetErrorString(e) {
errorLabel.text = e;
}
}