summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandquickshellintegration.h
diff options
context:
space:
mode:
authorPier Luigi Fiorini <pierluigi.fiorini@liri.io>2019-08-29 15:03:02 +0200
committerPier Luigi Fiorini <pierluigi.fiorini@liri.io>2019-09-05 09:42:19 +0200
commita85e1542de6fcd84de22955c8aa764e8c8317331 (patch)
tree37cfef9d3b6b76610f948f038950dc981f486abb /src/compositor/extensions/qwaylandquickshellintegration.h
parentf1148d63430347af03827c995bf68f86793c7ae0 (diff)
Improve QWaylandQuickShellIntegration API
During the API review we came up with an improved API. QWaylandQuickShellIntegration now filter events delivered to QWaylandQuickShellSurfaceItem using QObject event filter, thus we don't need a new API anymore. Change-Id: I91b05c4c8ecee56cd782f036160c569cd972abdb Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandquickshellintegration.h')
-rw-r--r--src/compositor/extensions/qwaylandquickshellintegration.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/compositor/extensions/qwaylandquickshellintegration.h b/src/compositor/extensions/qwaylandquickshellintegration.h
index e1a4c2384..00696681b 100644
--- a/src/compositor/extensions/qwaylandquickshellintegration.h
+++ b/src/compositor/extensions/qwaylandquickshellintegration.h
@@ -41,7 +41,6 @@
#define QWAYLANDQUICKSHELLINTEGRATION_H
#include <QtCore/QObject>
-#include <QtGui/QMouseEvent>
#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
QT_BEGIN_NAMESPACE
@@ -50,25 +49,8 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandQuickShellIntegration : public QObject
{
Q_OBJECT
public:
- explicit QWaylandQuickShellIntegration(QObject *parent = nullptr);
-
- virtual bool touchEvent(QTouchEvent *event);
-
- virtual bool hoverEnterEvent(QHoverEvent *event);
- virtual bool hoverLeaveEvent(QHoverEvent *event);
- virtual bool hoverMoveEvent(QHoverEvent *event);
-
- virtual bool keyPressEvent(QKeyEvent *event);
- virtual bool keyReleaseEvent(QKeyEvent *event);
-
- virtual bool mouseDoubleClickEvent(QMouseEvent *event);
- virtual bool mouseMoveEvent(QMouseEvent *event);
- virtual bool mousePressEvent(QMouseEvent *event);
- virtual bool mouseReleaseEvent(QMouseEvent *event);
-
-#if QT_CONFIG(wheelevent)
- virtual bool wheelEvent(QWheelEvent *event);
-#endif
+ QWaylandQuickShellIntegration(QObject *parent = nullptr);
+ ~QWaylandQuickShellIntegration() override;
};
QT_END_NAMESPACE