Regression fix to QHeaderView::setDefaultSectionSize
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Fri, 9 Nov 2012 14:58:57 +0000 (15:58 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 15 Nov 2012 12:55:00 +0000 (13:55 +0100)
commitfc271b4273c7ebfe2d08a6a29ec99c2f13ebb8cd
tree2e2a8abb00fe2f1925e295b9ebd6f8c61f527aa3
parent46fe591a534d85090ff94136598a9272f1e0c20a
Regression fix to QHeaderView::setDefaultSectionSize

When the sections has been resized we need to calculate new values
for the section start-positions. Otherwise we break visualIndexAt
and sectionPosition.

This fixes a regression introduced in
b800d8b94a7861ecf8853621f6556fca186fb5b7

Change-Id: I148dbf44f742208787ed59b70d82b8048d721e90
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qheaderview.cpp
tests/auto/widgets/itemviews/qheaderview/tst_qheaderview.cpp