From 19242bd7bae31415d73b396500d76afce8c1363e Mon Sep 17 00:00:00 2001 From: hat3ph <88069788+hat3ph@users.noreply.github.com> Date: Tue, 30 May 2023 17:32:09 +0800 Subject: [PATCH] Qt 5.15 deprecated: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Fix deprecated function code https://forum.qt.io/topic/115389/qt-5-15-depricated-qml-connections-implicitly-defined-onfoo-properties-in-connections-are-deprecated --- Main.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Main.qml b/Main.qml index 58b6458..2b8bec6 100644 --- a/Main.qml +++ b/Main.qml @@ -21,10 +21,10 @@ Rectangle { // Set SDDM actions Connections { target: sddm - onLoginSucceeded: { + function onLoginSucceeded() { } - onLoginFailed: { + function onLoginFailed() { error_message.color = "#dc322f" error_message.text = textConstants.loginFailed } @@ -439,7 +439,9 @@ Rectangle { Connections { target: keyboard - onCurrentLayoutChanged: combo.index = keyboard.currentLayout + function onCurrentLayoutChanged() { + combo.index = keyboard.currentLayout + } } rowDelegate: Rectangle {