diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-09-11 12:38:31 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-15 13:39:03 +0000 |
commit | 96275f64afd66161f8bb8b4b86ed3cd252826323 (patch) | |
tree | f2f82d63df56d15500828c05cbf4806b69c7b6d6 /examples/wayland/qwindow-compositor/main.cpp | |
parent | 29fdcebc636b038553e1bf60a6df83577486b910 (diff) |
Adapt example to new API without global coordinates
Also including:
Move windows on alt/meta + mousepress
Send mouse events also when no buttons are pressed
Add cursor support to the QWindow compositor
Implement resize
Change-Id: Ib4b64b2e474e519d2061e65954e53fa9d52fd85c
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'examples/wayland/qwindow-compositor/main.cpp')
-rw-r--r-- | examples/wayland/qwindow-compositor/main.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/wayland/qwindow-compositor/main.cpp b/examples/wayland/qwindow-compositor/main.cpp index 7f939a034..101367cfd 100644 --- a/examples/wayland/qwindow-compositor/main.cpp +++ b/examples/wayland/qwindow-compositor/main.cpp @@ -47,11 +47,9 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); CompositorWindow window; - window.resize(1500,800); - - WindowCompositor comp(&window); - window.setCompositor(&comp); - comp.create(); + WindowCompositor compositor(&window); + window.setCompositor(&compositor); + compositor.create(); window.show(); return app.exec(); |