diff options
author | Olivier Blin <olivier.blin@softathome.com> | 2014-11-25 15:20:33 +0100 |
---|---|---|
committer | Olivier Blin <qt@blino.org> | 2015-03-27 15:17:27 +0000 |
commit | 7d59e55421321839605e1c08f23aeba4da1d8cd8 (patch) | |
tree | 43f8fc624111bb76141df4be6a21e1b088abe96d /src/client/qwaylandshellsurface_p.h | |
parent | fc968d9ff868279350059bd37c7cbec8116a0156 (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/qwaylandshellsurface_p.h')
-rw-r--r-- | src/client/qwaylandshellsurface_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <QtCore/QSize> +#include <QObject> #include <wayland-client.h> @@ -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() {} |