diff --git a/app/qml/MprisSlider.qml b/app/qml/MprisSlider.qml index 633605ba8..8b07d3cdf 100644 --- a/app/qml/MprisSlider.qml +++ b/app/qml/MprisSlider.qml @@ -57,7 +57,7 @@ Loader { Connections { target: plugin - onNowPlayingChanged: { + function onNowPlayingChanged() { item.value = lastPosition } } diff --git a/app/qml/mousepad.qml b/app/qml/mousepad.qml index 9737f9d64..4f514c6c4 100644 --- a/app/qml/mousepad.qml +++ b/app/qml/mousepad.qml @@ -61,9 +61,10 @@ Kirigami.Page Connections { target: PointerLocker - onPointerMoved: { - if (!PointerLocker.isLocked) + function onPointerMoved() { + if (!PointerLocker.isLocked) { return; + } mousepad.pluginInterface.moveCursor(Qt.point(delta.x, delta.y)); } } diff --git a/declarativeplugin/qml/RemoteKeyboard.qml b/declarativeplugin/qml/RemoteKeyboard.qml index 9a9037961..9aecd6704 100644 --- a/declarativeplugin/qml/RemoteKeyboard.qml +++ b/declarativeplugin/qml/RemoteKeyboard.qml @@ -20,13 +20,13 @@ TextField { pluginName: "remotekeyboard" } - property variant remoteKeyboard: null + property var remoteKeyboard: null readonly property bool remoteState: available ? remoteKeyboard.remoteState : false Connections { target: remoteKeyboard - onKeyPressReceived: { + function onKeyPressReceived() { //console.log("XXX received keypress key=" + key + " special=" + specialKey + " shift=" + shift + " ctrl=" + ctrl + " text=" + text + " cursorPos=" + cursorPosition); // interpret some special keys: if (specialKey == 12 || specialKey == 14) // Return/Esc -> clear diff --git a/smsapp/qml/MessageAttachments.qml b/smsapp/qml/MessageAttachments.qml index 95112b595..b90397fca 100644 --- a/smsapp/qml/MessageAttachments.qml +++ b/smsapp/qml/MessageAttachments.qml @@ -135,7 +135,7 @@ Item { Connections { target: conversationModel - onFilePathReceived: { + function onFilePathReceived() { if (root.uniqueIdentifier == fileName && root.sourcePath == "") { root.sourcePath = "file:" + filePath