summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@nokia.com>2010-07-20 09:23:25 (GMT)
committerPierre Rossi <pierre.rossi@nokia.com>2010-07-20 09:42:20 (GMT)
commit8517f787b798d9e300438404aab359de2acc0978 (patch)
tree2961167559aad1f41bcad5a737c6e3aa22c1007e /src
parentb0998a44a5dc384a6cf65c1d5910cb3dd40620cf (diff)
downloadQt-8517f787b798d9e300438404aab359de2acc0978.zip
Qt-8517f787b798d9e300438404aab359de2acc0978.tar.gz
Qt-8517f787b798d9e300438404aab359de2acc0978.tar.bz2
Fix a Headerview layout bug
When the sections were moved calling logicalIndex on what was already a logical index messed up the hidden sections. Task-number: QTBUG-12268 Reviewed-by: Gabriel
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemviews/qheaderview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qheaderview.cpp b/src/gui/itemviews/qheaderview.cpp
index cd9ee15..67854a3 100644
--- a/src/gui/itemviews/qheaderview.cpp
+++ b/src/gui/itemviews/qheaderview.cpp
@@ -1871,7 +1871,7 @@ void QHeaderViewPrivate::_q_layoutChanged()
for (int i = 0; i < oldSectionHidden.count(); ++i) {
if (oldSectionHidden.testBit(i))
- q->setSectionHidden(logicalIndex(i), false);
+ q->setSectionHidden(i, false);
}
// the number of sections changed; we need to reread the state of the model