summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandxdgsurface_p.h
diff options
context:
space:
mode:
authorOlivier Blin <olivier.blin@softathome.com>2014-11-25 15:20:33 +0100
committerOlivier Blin <qt@blino.org>2015-03-27 15:17:27 +0000
commit7d59e55421321839605e1c08f23aeba4da1d8cd8 (patch)
tree43f8fc624111bb76141df4be6a21e1b088abe96d /src/client/qwaylandxdgsurface_p.h
parentfc968d9ff868279350059bd37c7cbec8116a0156 (diff)
Make QWaylandShellSurface a QObject to allow build without RTTI
dynamic_cast can not be used when RTTI is disabled, so make QWaylandShellSurface a QObject. QWaylandWlShellSurface and QWaylandXdgSurface must also inherit from QWaylandShellSurface first, to properly inherit from QObject. Change-Id: I2addb8105a0fe61615d4bc905414f7ee7277029f Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/client/qwaylandxdgsurface_p.h')
-rw-r--r--src/client/qwaylandxdgsurface_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/qwaylandxdgsurface_p.h b/src/client/qwaylandxdgsurface_p.h
index 635c9496a..f28715707 100644
--- a/src/client/qwaylandxdgsurface_p.h
+++ b/src/client/qwaylandxdgsurface_p.h
@@ -57,9 +57,10 @@ class QWaylandInputDevice;
class QWindow;
class QWaylandExtendedSurface;
-class Q_WAYLAND_CLIENT_EXPORT QWaylandXdgSurface : public QtWayland::xdg_surface
- , public QWaylandShellSurface
+class Q_WAYLAND_CLIENT_EXPORT QWaylandXdgSurface : public QWaylandShellSurface
+ , public QtWayland::xdg_surface
{
+ Q_OBJECT
public:
QWaylandXdgSurface(struct ::xdg_surface *shell_surface, QWaylandWindow *window);
virtual ~QWaylandXdgSurface();