From 7d59e55421321839605e1c08f23aeba4da1d8cd8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 25 Nov 2014 15:20:33 +0100 Subject: 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 --- src/client/qwaylandshellsurface_p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/qwaylandshellsurface_p.h') diff --git a/src/client/qwaylandshellsurface_p.h b/src/client/qwaylandshellsurface_p.h index 6f2336162..1f2346a9b 100644 --- a/src/client/qwaylandshellsurface_p.h +++ b/src/client/qwaylandshellsurface_p.h @@ -43,6 +43,7 @@ #define QWAYLANDSHELLSURFACE_H #include +#include #include @@ -56,8 +57,9 @@ class QWaylandWindow; class QWaylandInputDevice; class QWindow; -class Q_WAYLAND_CLIENT_EXPORT QWaylandShellSurface +class Q_WAYLAND_CLIENT_EXPORT QWaylandShellSurface : public QObject { + Q_OBJECT public: explicit QWaylandShellSurface(QWaylandWindow *window); virtual ~QWaylandShellSurface() {} -- cgit v1.2.3