summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2012-11-01 07:29:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-02 16:25:12 +0100
commitaa2578a1006f17cff50ca39090bae2e1e090b59b (patch)
tree5bc66e6fec942bd481ac9eaf13683b6970d768c0
parent9dfba89c28bbff3316cb7aed6c07f90c0f2d5a22 (diff)
QHeaderView - call invalidateCachedSizeHint() on clear
This calls invalidateCachedSizeHint on clear, which is a logical thing to do. Task-number: QTBUG-22528 Change-Id: I0befb2d492599fa8a05b1c2162bbca586e1b019d Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--src/widgets/itemviews/qheaderview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp
index e7e3a58670..c6b95afa28 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -3230,6 +3230,7 @@ void QHeaderViewPrivate::clear()
sectionHidden.clear();
hiddenSectionSize.clear();
sectionItems.clear();
+ invalidateCachedSizeHint();
}
}