qt5base-lts/tests/auto/widgets/itemviews
Vyacheslav Grigoryev 072485048f QHeaderView: fixing selection of reordered rows and columns
The old code incorrectly calculated visual region for a selection (specified by
QItemSelection object) in case of reordered / swapped rows or columns. It used
the leftmost and rightmost (upmost and downmost for vertical mode) logical
indexes directly. However some middle logical index (in case of reorder) may be
the leftmost or rightmost visual index. In such cases the repainting didn't
work properly. This fix first checks whether reordering / swapping is in use.
If it isn't (ie visual=logical) we use code similar to the old code. Otherwise
the new code scans all selected logical indexes, translates them into visual
ones and gets the correct leftmost and rightmost indexes.

[ChangeLog][QtWidgets][QHeaderView] Fixed a repainting issue when items had been reordered.

Task-number: QTBUG-50171
Change-Id: If6afabebf445cf32a8e0afe262b6ee149e7c4b2b
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
2016-04-21 21:13:38 +00:00
..
qabstractitemview QAbstractItemView test: check that the selection model is in sync with the view 2016-03-23 22:10:07 +00:00
qcolumnview tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qdatawidgetmapper Update copyright headers 2015-02-11 06:49:51 +00:00
qdirmodel fix usage of wince scope 2015-06-05 10:29:10 +00:00
qfileiconprovider QFileIconEngine: Remove reference to QFileIconProvider 2015-06-30 12:27:04 +00:00
qheaderview QHeaderView: fixing selection of reordered rows and columns 2016-04-21 21:13:38 +00:00
qitemdelegate tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qitemeditorfactory Update copyright headers 2015-02-11 06:49:51 +00:00
qitemview tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qlistview QListView: fix skipping indexes in selectedIndexes(). 2016-02-17 04:53:16 +00:00
qlistwidget tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qtableview Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qtablewidget Fix selected items after sorting in QTableWidget 2015-10-07 18:19:57 +00:00
qtreeview Blacklist tst_QTreeView::setSortingEnabledChild() on Windows. 2016-02-24 08:20:11 +00:00
qtreewidget Tests: Harmonize code checking on platform name. 2015-09-24 07:49:30 +00:00
qtreewidgetitemiterator tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
itemviews.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00