summaryrefslogtreecommitdiffstats
path: root/examples/wayland/pure-qml
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@theqtcompany.com>2016-04-11 12:51:21 +0200
committerJohan Helsing <johan.helsing@theqtcompany.com>2016-04-11 15:49:02 +0000
commit44f4395879ec9464c0a6dd3a7635fad05ad14118 (patch)
treea65a7eda1c4aac7101eedd42787c0483e442101b /examples/wayland/pure-qml
parentf2e42b438d221ab007e9d3a0cbac1d34634b66e6 (diff)
Simplify ShellSurfaceItem creationv5.7.0-beta1
Use onShellSurfaceCreated instead of onCreateShellSurface. A QWaylandWlShellSurface is no longer created in QWaylandWlShellSurfaceItem::componentComplete Change-Id: I7a0dbbacddc17ab32ed0e4d16e717fcefb221947 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Erik Larsson <erik@ortogonal.com>
Diffstat (limited to 'examples/wayland/pure-qml')
-rw-r--r--examples/wayland/pure-qml/qml/main.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml
index d706945e2..a8a3985de 100644
--- a/examples/wayland/pure-qml/qml/main.qml
+++ b/examples/wayland/pure-qml/qml/main.qml
@@ -66,10 +66,8 @@ WaylandCompositor {
WlShell {
id: defaultShell
-
- onCreateShellSurface: {
- var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "surface": surface } );
- item.shellSurface.initialize(defaultShell, surface, resource);
+ onShellSurfaceCreated: {
+ chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": shellSurface } );
}
Component.onCompleted: {