summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qtableview.cpp
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-15 14:23:50 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-15 14:23:50 (GMT)
commitbdc951eb87e0b1aa752d3ec750cfd837714bd8b7 (patch)
tree65f9abe4c72b112118fac79cc6c46bcd379aebf2 /src/gui/itemviews/qtableview.cpp
parent6b08c50f93236fec9ed24eaf36f839315e8dc08e (diff)
parent2eee73e843ba7b4c6e83bd6bfaa08994520c417d (diff)
downloadQt-bdc951eb87e0b1aa752d3ec750cfd837714bd8b7.zip
Qt-bdc951eb87e0b1aa752d3ec750cfd837714bd8b7.tar.gz
Qt-bdc951eb87e0b1aa752d3ec750cfd837714bd8b7.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6
Diffstat (limited to 'src/gui/itemviews/qtableview.cpp')
-rw-r--r--src/gui/itemviews/qtableview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp
index 2d98258..a610b73 100644
--- a/src/gui/itemviews/qtableview.cpp
+++ b/src/gui/itemviews/qtableview.cpp
@@ -1117,6 +1117,9 @@ void QTableView::setHorizontalHeader(QHeaderView *header)
connect(d->horizontalHeader, SIGNAL(sectionHandleDoubleClicked(int)),
this, SLOT(resizeColumnToContents(int)));
connect(d->horizontalHeader, SIGNAL(geometriesChanged()), this, SLOT(updateGeometries()));
+
+ //update the sorting enabled states on the new header
+ setSortingEnabled(d->sortingEnabled);
}
/*!