diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2010-07-20 09:23:25 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2010-07-20 09:42:20 (GMT) |
commit | 8517f787b798d9e300438404aab359de2acc0978 (patch) | |
tree | 2961167559aad1f41bcad5a737c6e3aa22c1007e /src | |
parent | b0998a44a5dc384a6cf65c1d5910cb3dd40620cf (diff) | |
download | Qt-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.cpp | 2 |
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 |