diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2017-10-25 13:18:41 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2017-11-06 01:32:42 +0000 |
commit | 05a986bf4a299d549c53c4153908945440601c27 (patch) | |
tree | 8c85e4f68bc1d6e0d6c3bfc4fc29812852c82a27 /examples | |
parent | 62293cefae129bbfebb0317b39d059b0abb1a16a (diff) | |
download | qtwayland-05a986bf4a299d549c53c4153908945440601c27.tar.gz |
Fix broken minimal-qml example
The example didn't work because XdgShellV6 was added in 1.1 and we imported 1.0.
Also, xdgSurface is the shell surface in the toplevelCreated signal.
Change-Id: Idf64745e39d50a6b2f8df696ba890890ef14af50
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wayland/minimal-qml/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wayland/minimal-qml/main.qml b/examples/wayland/minimal-qml/main.qml index 693ea5c8..0f0ca61b 100644 --- a/examples/wayland/minimal-qml/main.qml +++ b/examples/wayland/minimal-qml/main.qml @@ -50,7 +50,7 @@ import QtQuick 2.6 import QtQuick.Window 2.2 -import QtWayland.Compositor 1.0 +import QtWayland.Compositor 1.1 WaylandCompositor { // The output defines the screen. @@ -84,7 +84,7 @@ WaylandCompositor { } XdgShellV6 { onToplevelCreated: - shellSurfaces.append({shellSurface: toplevel}); + shellSurfaces.append({shellSurface: xdgSurface}); } ListModel { id: shellSurfaces } } |