summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2012-11-12 13:46:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-21 16:36:50 +0100
commit7a49d8dc06f1cf0d0c12cce9d12747df397c7fe2 (patch)
treecda8476cf753951b41c4a88df271e945e8122f88 /src/widgets
parentcf27bc6277e36478c895140cbbd9f470edc277fb (diff)
QHeaderView - call viewport->update() in setDefaultSectionSize
Just like in resizeSection, moveSection, swapSection (and more) we should call update on the viewport after setDefaultSectionSize. Change-Id: I88154138d98f644050054d7cd287a0addd9a9cf9 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 ede5c36d73..dc80a4b81f 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -3388,6 +3388,7 @@ void QHeaderViewPrivate::setDefaultSectionSize(int size)
sectionStartposRecalc = true;
if (hasAutoResizeSections())
doDelayedResizeSections();
+ viewport->update();
}
void QHeaderViewPrivate::recalcSectionStartPos() const // linear (but fast)