diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-08-20 11:16:42 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-08-20 11:33:30 (GMT) |
commit | 206c238d5ea9601d7dae77a3a45943a1cfea2747 (patch) | |
tree | fac0b0e4c069ae3d41caee909499aff4016f66a1 /src/gui/kernel/qt_cocoa_helpers_mac.mm | |
parent | 87d7479fcc5f089ac164c5336b405d0299244c43 (diff) | |
download | Qt-206c238d5ea9601d7dae77a3a45943a1cfea2747.zip Qt-206c238d5ea9601d7dae77a3a45943a1cfea2747.tar.gz Qt-206c238d5ea9601d7dae77a3a45943a1cfea2747.tar.bz2 |
Flickering "Whatsthis" pointer in Cocoa
Since mouse tracking is always enabled on all QCocoaView-s, we are
getting mouseMoved events for both parent and child (if mouse is over
the child). In such cases the mouseMoved events are ignored for the
parent view.
We are using the native NSCursor stack for setting the override cursor.
The current implementation for changeOverrideCursor is modified to keep
this stack in sync with Qt's internal list.
Task-number: 258173
Reviewed-by: Morten Sorvig
Diffstat (limited to 'src/gui/kernel/qt_cocoa_helpers_mac.mm')
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm index 7596802..a9b8970 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm @@ -1238,4 +1238,12 @@ void qt_mac_menu_collapseSeparators(void */*NSMenu **/ theMenu, bool collapse) } } +#ifdef QT_MAC_USE_COCOA +void qt_cocoaChangeOverrideCursor(const QCursor &cursor) +{ + QMacCocoaAutoReleasePool pool; + [static_cast<NSCursor *>(qt_mac_nsCursorForQCursor(cursor)) set]; +} +#endif + QT_END_NAMESPACE |