qt5base-lts/tests/auto/widgets/itemviews/qlistview
Alexander Volkov f657c74263 QListView: Fix Shift+click selection for non-default itemAlignment
QListView::setSelection() algorithm is designed for items to
occupy their cells completely, which is not the case when
itemAlignment is used. The middle part of the selection rect
goes beyond the column borders and extra items are selected.

Use the introduced cellRectForIndex() instead of rectForIndex()
to calculate the middle part correctly.

Fixes: QTBUG-73684
Change-Id: I4a1e42a056d56e85a16d8ae0ffe18b78d1d6deb7
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2019-02-27 15:58:56 +00:00
..
.gitignore
qlistview.pro Restore qlistview testing on Linux 2018-07-18 09:25:30 +00:00
tst_qlistview.cpp QListView: Fix Shift+click selection for non-default itemAlignment 2019-02-27 15:58:56 +00:00