diff options
author | Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> | 2016-06-05 16:43:54 +0200 |
---|---|---|
committer | Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> | 2016-06-06 08:50:55 +0000 |
commit | c1e28e6e3bcbe36eb63c348bb58990dcd6cbcba5 (patch) | |
tree | 9a6a42a6ff44f6522f744702f389d678192ed52a | |
parent | 96f5ab9955a8afaf4bb3c3c62704730e6b91551f (diff) |
Access QWaylandQuickShellSurfaceItem constructor from derived classes
Allow derived classes to use their own private class.
Change-Id: I2facfc0c465bdcfbe401a825cc829d841ed7be12
Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
-rw-r--r-- | src/compositor/extensions/qwaylandquickshellsurfaceitem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/extensions/qwaylandquickshellsurfaceitem.h b/src/compositor/extensions/qwaylandquickshellsurfaceitem.h index e233c99e5..f72b970c2 100644 --- a/src/compositor/extensions/qwaylandquickshellsurfaceitem.h +++ b/src/compositor/extensions/qwaylandquickshellsurfaceitem.h @@ -51,8 +51,6 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandQuickShellSurfaceItem : public QWaylan Q_DECLARE_PRIVATE(QWaylandQuickShellSurfaceItem) Q_PROPERTY(QWaylandShellSurface *shellSurface READ shellSurface WRITE setShellSurface NOTIFY shellSurfaceChanged) Q_PROPERTY(QQuickItem *moveItem READ moveItem WRITE setMoveItem NOTIFY moveItemChanged) - - QWaylandQuickShellSurfaceItem(QWaylandQuickShellSurfaceItemPrivate &dd, QQuickItem *parent); public: QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr); @@ -67,6 +65,8 @@ Q_SIGNALS: void moveItemChanged(); protected: + QWaylandQuickShellSurfaceItem(QWaylandQuickShellSurfaceItemPrivate &dd, QQuickItem *parent); + void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE; void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE; }; |