QHeaderView - fix to resizeSection patch (Ia812a747)
A minor simple adjustment to the update-patch for resizeSection. ( http://codereview.qt-project.org/#change,11267 ) We can't just return and ignore that we might needed to call d->doDelayedResizeSections Just because the header does not have updates enabled does not mean that the view hasn't updates enabled - and even in that situation we actually still wanted to keep this. (It is only if the parent is not visible we safe can/should skip this - but I will look into that later) Change-Id: I771de086a07d1e7612a6bfea132d4d15f277ceb3 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
c47b028749
commit
a5201007f2
@ -899,6 +899,8 @@ void QHeaderView::resizeSection(int logical, int size)
|
||||
d->createSectionSpan(visual, visual, size, d->headerSectionResizeMode(visual));
|
||||
|
||||
if (!updatesEnabled()) {
|
||||
if (d->hasAutoResizeSections())
|
||||
d->doDelayedResizeSections();
|
||||
emit sectionResized(logical, oldSize, size);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user