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>
This commit is contained in:
James Turner 2012-06-20 14:55:40 +02:00 committed by Qt by Nokia
parent 579ea489a4
commit ed29e29a3c

View File

@ -162,7 +162,7 @@ bool QWidgetWindow::event(QEvent *event)
case QEvent::DragMove:
case QEvent::Drop:
handleDragEvent(event);
break;
return true;
#endif
case QEvent::Expose: