Verified Commit 4b6caf9a authored by ivan tkachenko's avatar ivan tkachenko
Browse files

Port away from deprecated QML features

parent 03a58c66
Pipeline #235238 passed with stage
in 4 minutes
......@@ -57,7 +57,7 @@ Loader {
Connections {
target: plugin
onNowPlayingChanged: {
function onNowPlayingChanged() {
item.value = lastPosition
}
}
......
......@@ -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));
}
}
......
......@@ -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
......
......@@ -135,7 +135,7 @@ Item {
Connections {
target: conversationModel
onFilePathReceived: {
function onFilePathReceived() {
if (root.uniqueIdentifier == fileName && root.sourcePath == "") {
root.sourcePath = "file:" + filePath
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment