summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2011-12-19 19:37:09 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-31 20:01:10 +0100
commita5201007f255a07f7ba07981745eeaec41a14a34 (patch)
tree616f6e13f8e3b00c145af5de364435a273dc55cf
parentc47b0287498faf33bc7456579bc5fa6d47180114 (diff)
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>
-rw-r--r--src/widgets/itemviews/qheaderview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp
index e753f7263d..b52c2d6038 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -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;
}