diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-01-20 16:49:44 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-23 11:02:18 +0100 |
commit | 0b1586f86c08e0fe4936199eb655a83510fe7e54 (patch) | |
tree | c9d0b48644cff475c68b7e526f6c23a33b8fb2be /src/plugins/platforms/windows/qwindowscontext.h | |
parent | e309e7a3e8227647f64b8c1e5eb3fa893c4a4b61 (diff) |
Windows: Implement native event filters.
Change-Id: Ibdf556428e4dbb9156c87504b923ec9600bcf871
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscontext.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowscontext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowscontext.h b/src/plugins/platforms/windows/qwindowscontext.h index a733d16c3a..4f3a77bf05 100644 --- a/src/plugins/platforms/windows/qwindowscontext.h +++ b/src/plugins/platforms/windows/qwindowscontext.h @@ -103,6 +103,8 @@ class QWindowsContext { Q_DISABLE_COPY(QWindowsContext) public: + typedef bool (*EventFilter)(void *message, long *result); + enum SystemInfoFlags { SI_RTL_Extensions = 0x1, @@ -136,6 +138,8 @@ public: HDC displayContext() const; int screenDepth() const; + EventFilter setEventFilter(const QByteArray &eventType, EventFilter filter); + static QWindowsContext *instance(); static QString windowsErrorMessage(unsigned long errorCode); |