Port away from deprecated QML features
This commit is contained in:
parent
03a58c66a5
commit
4b6caf9af4
4 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue