Try to avoid automatic column resizing in Browse Data tab

See issue #1941.
This commit is contained in:
Martin Kleusberg
2019-07-26 15:10:32 +02:00
parent 8a4e363483
commit b32351e7b6

View File

@@ -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()));