qt5base-lts/tests/auto
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
..
android Updated license headers 2016-01-21 18:55:18 +00:00
bic/data Update binary compatibility files for Qt 5.9.0 for QtBase 2017-08-14 13:48:17 +00:00
cmake CMake: Set SKIP_AUTOMOC/AUTOUIC where needed 2017-11-22 13:51:30 +00:00
compilerwarnings/data Updated license headers 2016-01-21 18:55:18 +00:00
concurrent Remove tst_qtconcurrentiteratekernel blockSize test 2017-07-29 09:35:16 +00:00
corelib Add QThreadPool autotest to detect stale threads after tryTake 2017-11-16 12:42:44 +00:00
dbus Use QSharedPointer::create() more 2017-07-19 13:40:42 +00:00
gui tests: make exposeEventOnShrink_QTBUG54040 not flakey on xcb 2017-10-17 13:58:36 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Fix tst_QSslSocket::waitForConnectedEncryptedReadyRead 2017-11-22 13:50:09 +00:00
opengl Switch to RGB(A|X)8888[_Premultiplied] for QOpenGLFBO readbacks on GLES 2017-03-28 11:17:52 +00:00
other testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
printsupport Convert features.completer to QT_[REQUIRE_]CONFIG 2017-09-04 11:28:02 +00:00
shared Make self-contained test of condensed font matching and width 2016-10-16 00:11:13 +00:00
sql OCI: Match the constraints on the index_name column 2017-11-15 06:40:45 +00:00
testlib Add flowId to messages when logging in TeamCity format 2017-08-04 18:48:48 +00:00
tools Adapt qmake's raw-string parser to avoid confusion by macros 2017-08-24 14:27:50 +00:00
widgets QHeaderView: Simplify and fix layoutChange handling 2017-11-22 21:24:56 +00:00
xml tst_qxmlsimplereader::inputFromSocket - fix race condition(s) 2017-11-06 19:14:41 +00:00
auto.pro Skip d-bus tests also on armv7 2017-11-04 18:42:36 +00:00
network-settings.h Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00