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:
8
Main.qml
8
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 {
|
||||
|
||||
Reference in New Issue
Block a user