qt5base-lts/tests/auto/widgets/itemviews/qtreeview
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
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Blacklist tst_QTreeView::setSortingEnabledChild() on Windows. 2016-02-24 08:20:11 +00:00
qtreeview.pro testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
tst_qtreeview.cpp QHeaderView: fix inconsistent saved state, ignored during restore 2018-03-07 05:29:16 +00:00