diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-02 14:41:53 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-02 14:45:54 (GMT) |
commit | 8dbdcc129a7bb5f924aeb451799bc4d7495714ba (patch) | |
tree | bbd16a061ce7d8a0ad75477bdf05a3d84527be6d /src | |
parent | f30f3e7bdc846baf49ef51721a5b11d31be22cf2 (diff) | |
download | Qt-8dbdcc129a7bb5f924aeb451799bc4d7495714ba.zip Qt-8dbdcc129a7bb5f924aeb451799bc4d7495714ba.tar.gz Qt-8dbdcc129a7bb5f924aeb451799bc4d7495714ba.tar.bz2 |
QHeaderView: the sizeHint for section now takes the indicator into
account for all sections is sorting is enabled.
Task-number: 208320
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 b35c30b..aea288b 100644 --- a/src/gui/itemviews/qheaderview.cpp +++ b/src/gui/itemviews/qheaderview.cpp @@ -2540,7 +2540,7 @@ QSize QHeaderView::sectionSizeFromContents(int logicalIndex) const if (opt.icon.isNull()) opt.icon = qvariant_cast<QPixmap>(variant); QSize size = style()->sizeFromContents(QStyle::CT_HeaderSection, &opt, QSize(), this); - if (isSortIndicatorShown() && sortIndicatorSection() == logicalIndex) { + if (isSortIndicatorShown()) { int margin = style()->pixelMetric(QStyle::PM_HeaderMargin, &opt, this); if (d->orientation == Qt::Horizontal) size.rwidth() += size.height() + margin; |