From 1ca05bb0c174d505469ac647818afaf537b41f43 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 18 Jan 2012 15:16:09 +0100 Subject: Add support for platform plugin specific event filters. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The setEventFilter on the platform native interface allows subscribing to events on the backend by event name. Change-Id: Ib10077fbc69f0207edbae1177e7bbd18c8d0f9ae Reviewed-by: Jørgen Lind Reviewed-by: Michalina Ziemba --- src/plugins/platforms/xcb/qxcbconnection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/platforms/xcb/qxcbconnection.h') diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h index 1feba558c9..a02acecd6c 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.h +++ b/src/plugins/platforms/xcb/qxcbconnection.h @@ -66,6 +66,7 @@ class QXcbDrag; class QXcbKeyboard; class QXcbClipboard; class QXcbWMSupport; +class QXcbNativeInterface; typedef QHash WindowMapper; @@ -289,7 +290,7 @@ class QXcbConnection : public QObject { Q_OBJECT public: - QXcbConnection(const char *displayName = 0); + QXcbConnection(QXcbNativeInterface *nativeInterface, const char *displayName = 0); ~QXcbConnection(); QXcbConnection *connection() const { return const_cast(this); } @@ -390,6 +391,7 @@ private: QXcbClipboard *m_clipboard; QXcbDrag *m_drag; QScopedPointer m_wmSupport; + QXcbNativeInterface *m_nativeInterface; #if defined(XCB_USE_XLIB) void *m_xlib_display; -- cgit v1.2.3