summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandxdgshell_p.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-29 14:35:44 +0200
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-29 12:53:04 +0000
commite6255beec9114afd1fad9e7d62ebec433a627d54 (patch)
treee03655b01f480e4e82686ad02318f241a21f0002 /src/client/qwaylandxdgshell_p.h
parent1db1fa1619e718eebdc88899df6c0a8c6d2309b9 (diff)
Namespace the platform plugins
There currently is a QWaylandInputDevice class both in the wayland QPA plugin and in the QtCompositor API. This causes the qwindow-compositor example to crash when running nested in a wayland session due to a mismatch between the two classes. By namespacing all the plugin code we make sure that name clashes will not happen anymore. Change-Id: I17497cff697599200bea68bf01dfde474526390f Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/client/qwaylandxdgshell_p.h')
-rw-r--r--src/client/qwaylandxdgshell_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/qwaylandxdgshell_p.h b/src/client/qwaylandxdgshell_p.h
index 6a396bd11..f2e2e7bb4 100644
--- a/src/client/qwaylandxdgshell_p.h
+++ b/src/client/qwaylandxdgshell_p.h
@@ -52,9 +52,12 @@
QT_BEGIN_NAMESPACE
+class QWindow;
+
+namespace QtWaylandClient {
+
class QWaylandWindow;
class QWaylandInputDevice;
-class QWindow;
class Q_WAYLAND_CLIENT_EXPORT QWaylandXdgShell : public QtWayland::xdg_shell
{
@@ -70,4 +73,6 @@ private:
QT_END_NAMESPACE
+}
+
#endif // QWAYLANDXDGSHELL_H