Fix updating of drag icons.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 29 Aug 2012 14:06:05 +0000 (16:06 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 31 Aug 2012 14:10:25 +0000 (16:10 +0200)
commit1e34d3525f175340f03bad83600306c23703a92b
tree40bb433d6cabc6c37d1248e9547b1db822333364
parent9aa67cf0c48ff8e9e73fc19c4dcd950961b5ad54
Fix updating of drag icons.

Try to find a target widget that accepts drops; ignore the event
if none can be found. Split the handleDrag*() functions
to reduce indentation.

Add an autotest.

Task-number: QTBUG-22987
Change-Id: I516ac5f0c002caaf83c52ac16f821246e565230f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/widgets/kernel/qwidgetwindow.cpp
src/widgets/kernel/qwidgetwindow_qpa_p.h
tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp