From d94cbabd3d34596bc22325ba0190a9ee3d3a3704 Mon Sep 17 00:00:00 2001 From: Rayhan Kafi Pratama Date: Tue, 26 Nov 2024 01:07:52 +0700 Subject: [PATCH] qml: update deprecated syntax (#14) --- qml/main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 2b9ec15..2757650 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -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; } }