summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsscreen.h
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2018-03-01 11:04:00 +0100
committerThorbjørn Lund Martsum <tmartsum@gmail.com>2018-03-07 05:29:16 +0000
commit4a04eea4f4316684e20c509352c6c533cf39306e (patch)
tree0d82c1f72c75fc10c8eaf988e05f3086380cf781 /src/plugins/platforms/windows/qwindowsscreen.h
parent3eb42abab6c7d1f3a32ca55c972b1d7a4a703658 (diff)
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>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.h')
0 files changed, 0 insertions, 0 deletions