Move filter header from window to table widget and show sort indicators

Move the FilterTableHeader object from the MainWindow to the
ExtendedTableWidget class because it actually is a part of the latter,
not the former.

Show sort order arrows in the table header of the Browse Data tab after
clicking it.
This commit is contained in:
Martin Kleusberg
2014-05-25 14:35:56 +02:00
parent 80d5c1a117
commit 297bfbce0a
6 changed files with 19 additions and 10 deletions

View File

@@ -14,6 +14,8 @@ FilterTableHeader::FilterTableHeader(QTableView* parent) :
setClickable(true);
#endif
setSortIndicatorShown(true);
// Do some connects: Basically just resize and reposition the input widgets whenever anything changes
connect(this, SIGNAL(sectionResized(int,int,int)), this, SLOT(adjustPositions()));
connect(parent->horizontalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(adjustPositions()));