qt5base-lts/tests/auto/widgets
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
..
dialogs QWizard: Do not remove the Next button's shortcut 2017-10-24 16:43:52 +00:00
effects Revert "QWidgetEffectSourcePrivate::draw(): Call render() when no shared painter exists" 2017-06-14 13:00:35 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
itemviews QHeaderView: Simplify and fix layoutChange handling 2017-11-22 21:24:56 +00:00
kernel tst_QWidget::multipleToplevelFocusCheck(): Avoid overlapping 2017-11-06 14:39:18 +00:00
styles testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
util testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
widgets QAbstractButton: don't clear 'pressed' flag unless left button is released 2017-11-15 10:06:16 +00:00
widgets.pro