Skip to content

Commit 89536c9

Browse files
committed
refactor(qml): update deprecated syntax
1 parent 3ccff04 commit 89536c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qml/main.qml

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ ApplicationWindow {
8080

8181
Connections {
8282
target: hpa
83-
onFocusField: () => {
83+
function onFocusField() {
8484
passwordField.focus = true;
8585
}
86-
onBlockInput: (block) => {
86+
function onBlockInput(block) {
8787
passwordField.readOnly = block;
8888
if (!block) {
8989
passwordField.focus = true;
@@ -105,7 +105,7 @@ ApplicationWindow {
105105

106106
Connections {
107107
target: hpa
108-
onSetErrorString: (e) => {
108+
function onSetErrorString(e) {
109109
errorLabel.text = e;
110110
}
111111
}

0 commit comments

Comments
 (0)