summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-10-12 14:48:33 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-10-12 14:48:33 (GMT)
commitbc53cf1334738307110a661f19b6fbb9be9b72d6 (patch)
tree268f8a23eba6e491258d0189362e44deb3fdce6d /src/gui/itemviews
parent8da7252de0badb818302763cbe62c38ad699f1f3 (diff)
parent8df79a473e1a7e5c79b9b10827985bf3e9501002 (diff)
downloadQt-bc53cf1334738307110a661f19b6fbb9be9b72d6.zip
Qt-bc53cf1334738307110a661f19b6fbb9be9b72d6.tar.gz
Qt-bc53cf1334738307110a661f19b6fbb9be9b72d6.tar.bz2
Merge commit '8df79a473e1a7e5c79b9b10827985bf3e9501002' into 4.6
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qheaderview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/itemviews/qheaderview.cpp b/src/gui/itemviews/qheaderview.cpp
index a754579..fc9820f 100644
--- a/src/gui/itemviews/qheaderview.cpp
+++ b/src/gui/itemviews/qheaderview.cpp
@@ -524,10 +524,8 @@ QSize QHeaderView::sizeHint() const
Q_D(const QHeaderView);
if (d->cachedSizeHint.isValid())
return d->cachedSizeHint;
- int width = 0;
- int height = 0;
+ d->cachedSizeHint = QSize(0, 0); //reinitialize the cached size hint
const int sectionCount = count();
- d->executePostedLayout();
// get size hint for the first n sections
int i = 0;