Fix QWidgetWindow sending duplicate drag-drop events
authorJames Turner <james.turner@kdab.com>
Wed, 20 Jun 2012 12:55:40 +0000 (14:55 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 13:45:07 +0000 (15:45 +0200)
commited29e29a3c2148bbe8b5a0fd915f012b2dad604f
tree2ae019e0068c52a57243bc906a1c6e4067798768
parent579ea489a40ae0240f22c3d31bde1fc2cd8aaf15
Fix QWidgetWindow sending duplicate drag-drop events

Unlike the other event handlers in QWidgetWindow, the drag-drop events are not followed by an
early return. This causes all drag-drop events to also be sent to the root widget of the window,
which is a bug. For example in the fridgemagnets example, where the target widget and
root widget are the same, the drop event is received twice.

Change-Id: I99e56ad8c48b3d31b0bd7c815cea8490edbf0af4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/widgets/kernel/qwidgetwindow_qpa.cpp