summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@qt.io>2022-11-22 16:49:13 +0100
committerBernd Weimer <bernd.weimer@qt.io>2022-11-25 08:49:56 +0100
commitdd5f398ea2cd66dccba1582cd910e398e8f66029 (patch)
tree26f7bd9148895f9c7f9c0da5a06299580ff2aa78 /src
parentc14916f5fd84f6b5483024b3df77592661a0f04e (diff)
downloadqtwayland-dd5f398ea2cd66dccba1582cd910e398e8f66029.tar.gz
Improve examples
Updated signal handlers to new syntax to reduce noise (warnings). Allowed to build examples with subfolders in one step, updated from deprecated WlShell to XdgShell, etc. Change-Id: If821363ffd1b38ea1d152f5a044b0609cf739014 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/compositor/qmlfiles/WaylandCursorItem.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compositor/qmlfiles/WaylandCursorItem.qml b/src/compositor/qmlfiles/WaylandCursorItem.qml
index 1153038b..dfa70417 100644
--- a/src/compositor/qmlfiles/WaylandCursorItem.qml
+++ b/src/compositor/qmlfiles/WaylandCursorItem.qml
@@ -22,7 +22,7 @@ WaylandQuickItem {
Connections {
target: seat
- onCursorSurfaceRequest: {
+ function onCursorSurfaceRequest(surface, hotspotX, hotspotY) {
cursorItem.surface = surface;
cursorItem.hotspotX = hotspotX;
cursorItem.hotspotY = hotspotY;
@@ -41,7 +41,9 @@ WaylandQuickItem {
Connections {
target: dragIcon.surface
- onOffsetForNextFrame: dragIcon.offset = offset;
+ function onOffsetForNextFrame(offset) {
+ dragIcon.offset = offset;
+ }
}
}
}