diff --git a/src/FilterTableHeader.cpp b/src/FilterTableHeader.cpp index 9e4d4bac..fa43bcc6 100644 --- a/src/FilterTableHeader.cpp +++ b/src/FilterTableHeader.cpp @@ -10,9 +10,13 @@ FilterTableHeader::FilterTableHeader(QTableView* parent) : { // Activate the click signals to allow sorting setSectionsClickable(true); + // But use our own indicators allowing multi-column sorting setSortIndicatorShown(false); + // Make sure to not automatically resize the columns according to the contents + setSectionResizeMode(QHeaderView::Interactive); + // 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()));