diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-07-02 14:25:44 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-07-02 14:58:13 (GMT) |
commit | c6cc00316b2ce95adddc9fdb658d737057b40682 (patch) | |
tree | 7351a8ecee8f1548df02239e65c3b26b7018aea6 /src/gui/kernel/qcocoaview_mac_p.h | |
parent | 097476afe24d69bac65b84b70ed2f93e88875b40 (diff) | |
download | Qt-c6cc00316b2ce95adddc9fdb658d737057b40682.zip Qt-c6cc00316b2ce95adddc9fdb658d737057b40682.tar.gz Qt-c6cc00316b2ce95adddc9fdb658d737057b40682.tar.bz2 |
Drag and drop events are not delivered correctly in Cocoa
Drag and drop events should consider the WA_TransparentForMouseEvents
attribute like the mouse events. If this attribute is set for a widget,
the event has to be passed to right widget under mouse. The widget is
identified by calling hitTest. In such cases the leave event has to be
delivered to the widget which actually accepted the enter event.
Task-number: 252088
Reviewed-by: Norwegian Rock Cat
Diffstat (limited to 'src/gui/kernel/qcocoaview_mac_p.h')
-rw-r--r-- | src/gui/kernel/qcocoaview_mac_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qcocoaview_mac_p.h b/src/gui/kernel/qcocoaview_mac_p.h index b4a60b6..7c227cc 100644 --- a/src/gui/kernel/qcocoaview_mac_p.h +++ b/src/gui/kernel/qcocoaview_mac_p.h @@ -68,6 +68,7 @@ struct DnDParams NSEvent *theEvent; NSPoint localPoint; NSDragOperation performedAction; + NSPoint activeDragEnterPos; }; QT_END_NAMESPACE @@ -85,6 +86,7 @@ Q_GUI_EXPORT int composingLength; bool sendKeyEvents; QStringList *currentCustomTypes; + NSInteger dragEnterSequence; } - (id)initWithQWidget:(QWidget *)widget widgetPrivate:(QWidgetPrivate *)widgetprivate; - (void) finishInitWithQWidget:(QWidget *)widget widgetPrivate:(QWidgetPrivate *)widgetprivate; |