diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2016-07-01 13:29:52 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2016-08-15 10:43:53 +0000 |
commit | b9f0673a7928c896f44caf282c61b1080651f6b8 (patch) | |
tree | cff32cb46504cc303f519608a89fccc49ca386aa /src/compositor/extensions/qwaylandshellsurface.h | |
parent | f964f85dde7b847a725371da80b4860735a0aa28 (diff) |
Compositor: Add windowType property to QWaylandWlShellSurface
Change-Id: I61ee336d3bc83e034faa3b0bb69b8bbeb3a139fb
Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org>
Diffstat (limited to 'src/compositor/extensions/qwaylandshellsurface.h')
-rw-r--r-- | src/compositor/extensions/qwaylandshellsurface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandshellsurface.h b/src/compositor/extensions/qwaylandshellsurface.h index 88c736d24..e8c75327c 100644 --- a/src/compositor/extensions/qwaylandshellsurface.h +++ b/src/compositor/extensions/qwaylandshellsurface.h @@ -49,15 +49,20 @@ class QWaylandShellSurfaceTemplatePrivate; class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandShellSurface : public QWaylandCompositorExtension { Q_OBJECT + Q_PROPERTY(Qt::WindowType windowType READ windowType NOTIFY windowTypeChanged) public: #ifdef QT_WAYLAND_COMPOSITOR_QUICK virtual QWaylandQuickShellIntegration *createIntegration(QWaylandQuickShellSurfaceItem *item) = 0; #endif QWaylandShellSurface(QWaylandObject *waylandObject) : QWaylandCompositorExtension(waylandObject) {} + virtual Qt::WindowType windowType() const { return Qt::WindowType::Window; } protected: QWaylandShellSurface(QWaylandCompositorExtensionPrivate &dd) : QWaylandCompositorExtension(dd){} QWaylandShellSurface(QWaylandObject *container, QWaylandCompositorExtensionPrivate &dd) : QWaylandCompositorExtension(container, dd) {} + +Q_SIGNALS: + void windowTypeChanged(); }; template <typename T> |