qt5base-lts/tests/auto/widgets/itemviews
David Faure 4a04eea4f4 QHeaderView: fix inconsistent saved state, ignored during restore
The code that updates a section size must also update length,
otherwise saveState can end up saving inconsistent state, and
restoreState() goes to an early-return, not doing anything.

The actual bug was fixed meanwhile because _q_sectionsChanged is called
again, which recalculates length. I still see this only as a safety
measure, every other code path that changes section sizes updates length
right away.

Change-Id: I6cc16261692d93b3640afafef600a5bdff8dca0c
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
2018-03-07 05:29:16 +00:00
..
qabstractitemview tst_QAbstractItemView: Wrap qWaitForWindowActive in QVERIFY 2018-03-01 09:38:19 +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 Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview QHeaderView: Fix crash in layout about to change 2018-03-01 05:26:12 +00:00
qitemdelegate Sync QItemDelegate::doLayout with QCommonStylePrivate::viewItemLayout 2018-01-18 18:01:39 +00:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qlistview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qlistwidget QListWidgetItem/QStandardItem: pass role to dataChanged() signal 2018-01-26 19:58:26 +00:00
qtableview qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qtablewidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qtreeview QHeaderView: fix inconsistent saved state, ignored during restore 2018-03-07 05:29:16 +00:00
qtreewidget QTreeWidget: fix visualItemRect() 2018-01-03 07:53:41 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00