summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2012-11-05 05:43:00 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-07 12:51:25 (GMT)
commit5ec6e2aca2950634d39195cc858bf062a2e2618d (patch)
tree97dd752cb4a2c88dc5cd3162fb691e4e7d736b84
parent8c273bb6fb0a2b27067dea6999fbe2e4a6a8c1e4 (diff)
downloadQt-5ec6e2aca2950634d39195cc858bf062a2e2618d.zip
Qt-5ec6e2aca2950634d39195cc858bf062a2e2618d.tar.gz
Qt-5ec6e2aca2950634d39195cc858bf062a2e2618d.tar.bz2
HeaderView - call invalidateCachedSizeHint() on clear
This calls invalidateCachedSizeHint on clear, which is a logical thing to do. This is a backport of SHA aa2578a1006f17cff50ca39090bae2e1e090b59b Task-number: QTBUG-22528 Change-Id: I725748b314fd9d09441d3bf34c4607a4cc7162ed Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--src/gui/itemviews/qheaderview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qheaderview.cpp b/src/gui/itemviews/qheaderview.cpp
index 2bc4619..542d98b 100644
--- a/src/gui/itemviews/qheaderview.cpp
+++ b/src/gui/itemviews/qheaderview.cpp
@@ -3288,6 +3288,7 @@ void QHeaderViewPrivate::clear()
sectionHidden.clear();
hiddenSectionSize.clear();
sectionSpans.clear();
+ invalidateCachedSizeHint();
}
}