From a5201007f255a07f7ba07981745eeaec41a14a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lund=20Martsum?= Date: Mon, 19 Dec 2011 19:37:09 +0100 Subject: [PATCH] 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 Reviewed-by: Stephen Kelly --- src/widgets/itemviews/qheaderview.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }