diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-02-11 14:24:48 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-02-12 12:34:44 (GMT) |
commit | 49228260b8a70a8177c5eb89b73ed6f3a07b7cc9 (patch) | |
tree | c1fd3f1b1ace30d4db11809ec7890d01d2bbe63f /src/corelib/kernel | |
parent | 43233652e753ffa2b97a8b6d56ae53bb02cbad6b (diff) | |
download | Qt-49228260b8a70a8177c5eb89b73ed6f3a07b7cc9.zip Qt-49228260b8a70a8177c5eb89b73ed6f3a07b7cc9.tar.gz Qt-49228260b8a70a8177c5eb89b73ed6f3a07b7cc9.tar.bz2 |
Ignore touch and gesture events when excluding input events
When asked to exclude input events when processing events in the event
dispatcher we should also exclude touch and gesture events on Windows and Mac.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qeventdispatcher_win.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_win.cpp b/src/corelib/kernel/qeventdispatcher_win.cpp index cbc87f3..93becc8 100644 --- a/src/corelib/kernel/qeventdispatcher_win.cpp +++ b/src/corelib/kernel/qeventdispatcher_win.cpp @@ -68,6 +68,14 @@ extern uint qGlobalPostedEventsCount(); # define QS_RAWINPUT 0x0400 #endif +#ifndef WM_TOUCH +# define WM_TOUCH 0x0240 +#endif +#ifndef WM_GESTURE +# define WM_GESTURE 0x0119 +# define WM_GESTURENOTIFY 0x011A +#endif + enum { WM_QT_SOCKETNOTIFIER = WM_USER, WM_QT_SENDPOSTEDEVENTS = WM_USER + 1, @@ -714,6 +722,9 @@ bool QEventDispatcherWin32::processEvents(QEventLoop::ProcessEventsFlags flags) && msg.message <= WM_MOUSELAST) || msg.message == WM_MOUSEWHEEL || msg.message == WM_MOUSEHWHEEL + || msg.message == WM_TOUCH + || msg.message == WM_GESTURE + || msg.message == WM_GESTURENOTIFY || msg.message == WM_CLOSE)) { // queue user input events for later processing haveMessage = false; |