diff options
author | Bjoern Breitmeyer <bjoern.breitmeyer@kdab.com> | 2012-07-04 16:14:29 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-06 01:38:30 +0200 |
commit | 5f04a127a7b25f4e393e1c33639c7a83ec2f375a (patch) | |
tree | c08681a6a30a456fb7d71f4c9729be526e988377 /src/plugins/platforms/windows/qwindowscontext.cpp | |
parent | 2f2d6db09a04bfe1dee144a13db84c5eeac136ea (diff) |
fixed cursor handling on wince
Change-Id: Iea91dde458b0e41a55ba6cb3e157756a1473f653
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscontext.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowscontext.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowscontext.cpp b/src/plugins/platforms/windows/qwindowscontext.cpp index 2c9750a327..a988aef589 100644 --- a/src/plugins/platforms/windows/qwindowscontext.cpp +++ b/src/plugins/platforms/windows/qwindowscontext.cpp @@ -837,6 +837,17 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message, if (platformWindow->frameStrutEventsEnabled()) return d->m_mouseHandler.translateMouseEvent(platformWindow->window(), hwnd, et, msg, result); break; +/* the mouse tracking on windows already handles the reset of the cursor + * and does not like somebody else handling it. + * on WINCE its necessary to handle this event to get the correct cursor + */ +#ifdef Q_OS_WINCE + case QtWindows::CursorEvent: + { + QWindowsWindow::baseWindowOf(platformWindow->window())->applyCursor(); + return true; + } +#endif case QtWindows::MouseWheelEvent: case QtWindows::MouseEvent: case QtWindows::LeaveEvent: |