summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2012-11-09 15:58:57 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-15 13:55:00 +0100
commitfc271b4273c7ebfe2d08a6a29ec99c2f13ebb8cd (patch)
tree2e2a8abb00fe2f1925e295b9ebd6f8c61f527aa3 /src/widgets
parent46fe591a534d85090ff94136598a9272f1e0c20a (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/widgets')
-rw-r--r--src/widgets/itemviews/qheaderview.cpp1
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)