From 24e31f0f6a8b069692727ee02515b0f14c6520ec Mon Sep 17 00:00:00 2001 From: Mantas-2155X <13873974+Mantas-2155X@users.noreply.github.com> Date: Sun, 22 May 2022 12:38:10 +0300 Subject: [PATCH] Fix deprecated code --- sddm/themes/materia-dark/Main.qml | 4 ++-- sddm/themes/materia-light/Main.qml | 4 ++-- sddm/themes/materia/Main.qml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sddm/themes/materia-dark/Main.qml b/sddm/themes/materia-dark/Main.qml index b505b13..0d2c2e4 100644 --- a/sddm/themes/materia-dark/Main.qml +++ b/sddm/themes/materia-dark/Main.qml @@ -30,10 +30,10 @@ Rectangle { Connections { target: sddm - onLoginSucceeded: { + function onLoginSucceeded() { } - onLoginFailed: { + function onLoginFailed() { password.placeholderText = textConstants.loginFailed password.placeholderTextColor = "#f44336" password.text = "" diff --git a/sddm/themes/materia-light/Main.qml b/sddm/themes/materia-light/Main.qml index 39396eb..69a480f 100644 --- a/sddm/themes/materia-light/Main.qml +++ b/sddm/themes/materia-light/Main.qml @@ -30,10 +30,10 @@ Rectangle { Connections { target: sddm - onLoginSucceeded: { + function onLoginSucceeded() { } - onLoginFailed: { + function onLoginFailed() { password.placeholderText = textConstants.loginFailed password.placeholderTextColor = "#f44336" password.text = "" diff --git a/sddm/themes/materia/Main.qml b/sddm/themes/materia/Main.qml index 9e84e8b..a0cf541 100644 --- a/sddm/themes/materia/Main.qml +++ b/sddm/themes/materia/Main.qml @@ -30,10 +30,10 @@ Rectangle { Connections { target: sddm - onLoginSucceeded: { + function onLoginSucceeded() { } - onLoginFailed: { + function onLoginFailed() { password.placeholderText = textConstants.loginFailed password.placeholderTextColor = "#f44336" password.text = ""