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>
This commit is contained in:
Thorbjørn Lund Martsum 2012-11-12 13:46:46 +01:00 committed by The Qt Project
parent cf27bc6277
commit 7a49d8dc06

View File

@ -3388,6 +3388,7 @@ void QHeaderViewPrivate::setDefaultSectionSize(int size)
sectionStartposRecalc = true;
if (hasAutoResizeSections())
doDelayedResizeSections();
viewport->update();
}
void QHeaderViewPrivate::recalcSectionStartPos() const // linear (but fast)