From 00c6a43404910d4f838930cbadaf326539731eb1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 24 Oct 2017 20:45:38 -0700 Subject: Update to new QRandomGenerator API Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Lars Knoll --- examples/wayland/minimal-cpp/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/wayland') diff --git a/examples/wayland/minimal-cpp/window.cpp b/examples/wayland/minimal-cpp/window.cpp index a23bba3ae..a66a33d58 100644 --- a/examples/wayland/minimal-cpp/window.cpp +++ b/examples/wayland/minimal-cpp/window.cpp @@ -75,7 +75,7 @@ static int sillyrandom(int range) { if (range <= 0) range = 200; - return QRandomGenerator::bounded(range); + return QRandomGenerator::global()->bounded(range); } void Window::paintGL() -- cgit v1.2.3 From 00390ccf893aa02c8f51e0887624455c7e8d111d Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Sat, 18 Nov 2017 15:20:42 +0100 Subject: pure-qml example: fix position of XdgShellV6 popups Menus open up at the right place this way. Change-Id: Iae18fdcefe33356e9e9ee105b9f5c597bb6c896b Reviewed-by: Johan Helsing --- examples/wayland/pure-qml/qml/main.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/wayland') diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index 9ed4acd24..77ed3ecd9 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -104,9 +104,8 @@ WaylandCompositor { } onPopupCreated: { var parentView = viewsBySurface[popup.parentXdgSurface.surface]; - var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } ); + var item = chromeComponent.createObject(parentView, { "shellSurface": xdgSurface } ); viewsBySurface[xdgSurface.surface] = item; - //TODO: set popup position } } -- cgit v1.2.3