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
This commit is contained in:
hat3ph
2023-05-30 17:32:09 +08:00
committed by GitHub
parent 7dceae9add
commit 19242bd7ba

View File

@@ -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 {