diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2012-11-09 15:58:57 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-15 13:55:00 +0100 |
commit | fc271b4273c7ebfe2d08a6a29ec99c2f13ebb8cd (patch) | |
tree | 2e2a8abb00fe2f1925e295b9ebd6f8c61f527aa3 /src | |
parent | 46fe591a534d85090ff94136598a9272f1e0c20a (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/itemviews/qheaderview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index fa774b5074..21c2e9050c 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -3382,6 +3382,7 @@ void QHeaderViewPrivate::setDefaultSectionSize(int size) } } } + sectionStartposRecalc = true; } void QHeaderViewPrivate::recalcSectionStartPos() const // linear (but fast) |