diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-09-15 08:39:05 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-09-15 08:49:25 (GMT) |
commit | c4f6d22d8bb59560f7a727bb6e08b0ff53793c6e (patch) | |
tree | 580fddea6853bc18a1f311212ce0b48055cdcb19 | |
parent | b94d6354cb0b24a92e674fc994919394c7549b5a (diff) | |
download | Qt-c4f6d22d8bb59560f7a727bb6e08b0ff53793c6e.zip Qt-c4f6d22d8bb59560f7a727bb6e08b0ff53793c6e.tar.gz Qt-c4f6d22d8bb59560f7a727bb6e08b0ff53793c6e.tar.bz2 |
Bauhaus widgetbox drag and drop not working in Cocoa
Bauhaus uses grabMouse to implement their own Drag and Drop mechanism.
Cocoa port never considered the grabber widget. All the mouse events
will now be routed to the mouse grabber widget.
Task-number: 261245
Reviewed-by: MortenS
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm index d27c775..2b2259c 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm @@ -876,6 +876,10 @@ bool qt_mac_handleMouseEvent(void * /* NSView * */view, void * /* NSEvent * */ev QWidget *widgetToGetMouse = qwidget; QWidget *popup = qAppInstance()->activePopupWidget(); NSView *tmpView = theView; + if (mac_mouse_grabber && mac_mouse_grabber != widgetToGetMouse) { + widgetToGetMouse = mac_mouse_grabber; + tmpView = qt_mac_nativeview_for(widgetToGetMouse); + } if (popup && popup != qwidget->window()) { widgetToGetMouse = popup; |