qt5base-lts/tests/auto/widgets/itemviews
Stephen Kelly a6d7f38791 QHeaderView: Simplify and fix layoutChange handling
A layoutChange indicates that anything can have moved to anywhere else,
including as a result purely of new items being added. It can also
indicate that items are removed.

The old code here incorrectly assumed that the section count remained
constant over this operation by setting the size of the oldSectionHidden
QBitArray - whose size is the size before the layoutChange operation -
and then calling setBit with model rows numbered after the layoutChange
operation.  As the two are not necessarily the same dimensions, this can
result in asserts from the setBit call.

Simplify the handling of layoutChanged entirely by clearing section
information, and using the QPersistentIndexes which indicate hidden
state to restore that state after re-population.

Task-number: QTBUG-53221
Change-Id: I3cda13e86b51b3029b37b647a48748fb604db252
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
2017-11-22 21:24:56 +00:00
..
qabstractitemview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qcolumnview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview QHeaderView: Simplify and fix layoutChange handling 2017-11-22 21:24:56 +00:00
qitemdelegate Blacklist tst_QItemDelegate::testLineEditValidation in openSUSE 42.3 2017-09-20 10:06:34 +00:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qlistview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qlistwidget Plug remaining memleaks in tests/auto/widgets/itemviews 2017-01-26 10:32:51 +00:00
qtableview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qtablewidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qtreeview Start from the first visible item when doing a search 2017-11-22 13:49:52 +00:00
qtreewidget tst_QTreeWidget: Fix GCC 7 warnings about using uninitialized variables 2017-06-25 22:04:04 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00