mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
Try to avoid automatic column resizing in Browse Data tab
See issue #1941.
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user