summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_cocoa_helpers_mac.mm
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-09-15 08:39:05 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-09-15 08:49:25 (GMT)
commitc4f6d22d8bb59560f7a727bb6e08b0ff53793c6e (patch)
tree580fddea6853bc18a1f311212ce0b48055cdcb19 /src/gui/kernel/qt_cocoa_helpers_mac.mm
parentb94d6354cb0b24a92e674fc994919394c7549b5a (diff)
downloadQt-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
Diffstat (limited to 'src/gui/kernel/qt_cocoa_helpers_mac.mm')
-rw-r--r--src/gui/kernel/qt_cocoa_helpers_mac.mm4
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;