diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-01-18 15:16:09 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-20 12:43:52 +0100 |
commit | 1ca05bb0c174d505469ac647818afaf537b41f43 (patch) | |
tree | 01653a1361ca8ed373e3ab77d46af2a15874bdfe /src/plugins/platforms/xcb/qxcbconnection.h | |
parent | 8060dd3c42982543b2b5949187fa5b5bb6aeff29 (diff) |
Add support for platform plugin specific event filters.
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 <jorgen.lind@nokia.com>
Reviewed-by: Michalina Ziemba <michalina.ziemba@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<xcb_window_t, QXcbWindow *> 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<QXcbConnection *>(this); } @@ -390,6 +391,7 @@ private: QXcbClipboard *m_clipboard; QXcbDrag *m_drag; QScopedPointer<QXcbWMSupport> m_wmSupport; + QXcbNativeInterface *m_nativeInterface; #if defined(XCB_USE_XLIB) void *m_xlib_display; |