qt5base-lts/tests/auto/widgets
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
..
dialogs Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
effects Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
gestures Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
graphicsview Remove empty first lines of files. 2016-04-06 18:26:26 +00:00
itemviews QHeaderView: fixing selection of reordered rows and columns 2016-04-21 21:13:38 +00:00
kernel Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
styles Make sure QStyleOption is correctly initialized. 2016-04-05 20:32:26 +00:00
util Pass -silent to lrelease to avoid cruft in test logs. 2016-02-02 16:28:07 +00:00
widgets tests: fix tst_QFontComboBox on OS X 2016-04-08 15:02:58 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00