diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-04-16 08:12:18 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-04-16 08:15:23 (GMT) |
commit | d43d33eb3121519d0025ad433d5c186365c47ef6 (patch) | |
tree | 55457fb6c15295de668c545a88c3c377ce3fd0ac /src/gui/itemviews/qheaderview_p.h | |
parent | 3eeb244251fd3bbfa3c3f421f1362986100d7587 (diff) | |
download | Qt-d43d33eb3121519d0025ad433d5c186365c47ef6.zip Qt-d43d33eb3121519d0025ad433d5c186365c47ef6.tar.gz Qt-d43d33eb3121519d0025ad433d5c186365c47ef6.tar.bz2 |
QTreeView automatic resize can be broken
QTreeView sometimes autoresizes the wrong column
Task-number: 210390
Reviewed-by: janarve
Diffstat (limited to 'src/gui/itemviews/qheaderview_p.h')
-rw-r--r-- | src/gui/itemviews/qheaderview_p.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/itemviews/qheaderview_p.h b/src/gui/itemviews/qheaderview_p.h index fbba69a..95bd84c 100644 --- a/src/gui/itemviews/qheaderview_p.h +++ b/src/gui/itemviews/qheaderview_p.h @@ -91,6 +91,7 @@ public: stretchLastSection(false), cascadingResizing(false), forceInitializing(false), + resizeRecursionBlock(false), stretchSections(0), contentsSections(0), minimumSectionSize(-1), @@ -170,10 +171,6 @@ public: if (!sectionHidden.isEmpty()) sectionHidden.setBit(visual, hidden); } - inline QHeaderView::ResizeMode visualIndexResizeMode(int visual) const { - return headerSectionResizeMode(visual); - } - inline bool hasAutoResizeSections() const { return stretchSections || stretchLastSection || contentsSections; } @@ -211,7 +208,7 @@ public: } inline bool sectionIsCascadable(int visual) const { - return visualIndexResizeMode(visual) == QHeaderView::Interactive; + return headerSectionResizeMode(visual) == QHeaderView::Interactive; } inline int modelSectionCount() const { @@ -231,7 +228,6 @@ public: inline void executePostedResize() const { if (delayedResize.isActive() && state == NoState) { - delayedResize.stop(); const_cast<QHeaderView*>(q_func())->resizeSections(); } } @@ -276,6 +272,7 @@ public: bool stretchLastSection; bool cascadingResizing; bool forceInitializing; + bool resizeRecursionBlock; int stretchSections; int contentsSections; int defaultSectionSize; |