qt6-bb10/tests/auto/widgets
Volker Hilsheimer 14e09ada69 Fix rearranging of icons in listview via drag'n'drop
Since 0f1008a593, views record if they
moved the item in the model, and prevent the deletion of the source item
in QAbstractItemView by setting the dropEventMoved private data member.

However, QListView in icon mode is special: it doesn't rearrange the
model, it repositions the icons in the view. While the dropEventMoved
logic was applied to the drag event filter to prevent deletion, the
variable was never set in the filterDropEvent handler. The drop event got
ignored, breaking rearranging of icons.

Fix this by setting the dropEventMoved member in filterDropEvent.

Fixes: QTBUG-94226
Pick-to: 5.15 6.1
Change-Id: I963f5db0f81bcd0d25eef05d9a265be00a5871f6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
2021-06-08 00:10:42 +02:00
..
dialogs Fix wrong C-style cast, use correct QTest::keyClick overload 2021-04-28 10:15:29 +02:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
itemviews Fix rearranging of icons in listview via drag'n'drop 2021-06-08 00:10:42 +02:00
kernel Blacklist tst_QWidget::multipleToplevelFocusCheck() on SLES 15 2021-05-18 11:56:06 +02:00
styles QTabBar: take a style sheet's font into account when laying out tabs 2021-05-06 20:06:44 +02:00
util Remove the qmake project files 2021-01-07 15:32:28 +01:00
widgets tst_QDateTimeEdit::editingRanged(): use QScopedPointer 2021-06-03 16:14:00 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00