summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2017-10-25 13:18:41 +0200
committerJohan Helsing <johan.helsing@qt.io>2017-11-06 01:32:42 +0000
commit05a986bf4a299d549c53c4153908945440601c27 (patch)
tree8c85e4f68bc1d6e0d6c3bfc4fc29812852c82a27 /examples
parent62293cefae129bbfebb0317b39d059b0abb1a16a (diff)
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.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wayland/minimal-qml/main.qml b/examples/wayland/minimal-qml/main.qml
index 693ea5c81..0f0ca61bc 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 }
}