summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-06-05 00:20:48 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-06-08 00:10:42 +0200
commit14e09ada69fc3f1b09a8ad8228c3b8ebb542b220 (patch)
tree36f9a614e4753880bbb2eeaf0b8198c46701f9fb /src/testlib/qtestcase.cpp
parentefdaba37d61e82f27a7bcbb49e176313452f59f9 (diff)
Fix rearranging of icons in listview via drag'n'drop
Since 0f1008a5936c903ca9448193df7df6117e2c617b, 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>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
0 files changed, 0 insertions, 0 deletions