diff options
author | Bernd Weimer <bernd.weimer@qt.io> | 2022-11-22 16:49:13 +0100 |
---|---|---|
committer | Bernd Weimer <bernd.weimer@qt.io> | 2022-11-25 08:49:56 +0100 |
commit | dd5f398ea2cd66dccba1582cd910e398e8f66029 (patch) | |
tree | 26f7bd9148895f9c7f9c0da5a06299580ff2aa78 /examples/wayland/pure-qml | |
parent | c14916f5fd84f6b5483024b3df77592661a0f04e (diff) |
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 'examples/wayland/pure-qml')
-rw-r--r-- | examples/wayland/pure-qml/qml/main.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index 80faa80dd..87feedf14 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -16,17 +16,17 @@ WaylandCompositor { // Shell surface extension. Needed to provide a window concept for Wayland clients. // I.e. requests and events for maximization, minimization, resizing, closing etc. XdgShell { - onToplevelCreated: screen.handleShellSurface(xdgSurface) + onToplevelCreated: (toplevel, xdgSurface) => screen.handleShellSurface(xdgSurface) } // Minimalistic shell extension. Mainly used for embedded applications. IviApplication { - onIviSurfaceCreated: screen.handleShellSurface(iviSurface) + onIviSurfaceCreated: (iviSurface) => screen.handleShellSurface(iviSurface) } // Deprecated shell extension, still used by some clients WlShell { - onWlShellSurfaceCreated: screen.handleShellSurface(shellSurface) + onWlShellSurfaceCreated: (shellSurface) => screen.handleShellSurface(shellSurface) } // ![shell extensions] |