diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-03-01 13:55:25 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-03-01 14:02:07 (GMT) |
commit | 5255c09fceddf5a1b79c6016f51c0d721c599c9b (patch) | |
tree | c4ea0341b390c2c8b6381efdec53fa234c2c578d /src/gui/kernel/qapplication_win.cpp | |
parent | 1ab5feb6260589f254ed209816cb67dbe9d3e4a5 (diff) | |
download | Qt-5255c09fceddf5a1b79c6016f51c0d721c599c9b.zip Qt-5255c09fceddf5a1b79c6016f51c0d721c599c9b.tar.gz Qt-5255c09fceddf5a1b79c6016f51c0d721c599c9b.tar.bz2 |
handle WM_GESTURE events on WinCE, only if QT_WINCE_GESTURES is defined
Otherwise, we get annoying qWarning messages.
Reviewed-by: thartman
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index aac834d..da6869d 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -2524,6 +2524,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam } result = false; break; +#if !defined(Q_WS_WINCE) || defined(QT_WINCE_GESTURES) case WM_GESTURE: { GESTUREINFO gi; memset(&gi, 0, sizeof(GESTUREINFO)); @@ -2556,6 +2557,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam result = true; break; } +#endif // !defined(Q_WS_WINCE) || defined(QT_WINCE_GESTURES) default: result = false; // event was not processed break; |