diff options
author | Stephen D'Angelo <stephen.m.dangelo@gmail.com> | 2017-11-30 12:14:16 -0500 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-10-09 19:23:31 +0000 |
commit | 3fde977a817498817e98ce350d493658b0ed4458 (patch) | |
tree | db4d1c465fb3e7886b188d7bcf3c21fd581d1286 /src/qmlmodels/qqmldelegatemodel.cpp | |
parent | 6b6ef3a8417e628ca01a1c2cad81af69ea5c9d3a (diff) |
QQuickWindow: Higher z-order items now steal drop target
Previously, an active drop target would remain the drop target until the
drag left it's area, or entered a child item that accepted a
DragEnterEvent, even if the drag entered a drop target with a globally
higher z-order from a different subtree.
When moving to an item with a higher z-order, the DragEnterEvent is
now sent to the new drop target before DragLeaveEvent is sent to the old
drop target. There can now only be one drop target. If an item is the
current drop target and a higher z-order child accepts the DragEnterEvent,
the parent is no longer a drop target.
Fixes: QTBUG-30305
Change-Id: I7b985d6317be70867e7727222a4cd44ace7559e6
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qmlmodels/qqmldelegatemodel.cpp')
0 files changed, 0 insertions, 0 deletions