Commit 677a311c authored by Marian Ďurkovič's avatar Marian Ďurkovič

Workaround braindead QT implementation of ResizeToContents

It's so slow that it's not usable on large datasets.
parent 9cc428cb
...@@ -410,9 +410,10 @@ InfoPanel::InfoPanel( QWidget *parent, ...@@ -410,9 +410,10 @@ InfoPanel::InfoPanel( QWidget *parent,
InfoTree = new QTreeWidget(this); InfoTree = new QTreeWidget(this);
InfoTree->setColumnCount( 1 ); InfoTree->setColumnCount( 1 );
InfoTree->setColumnWidth( 0, 20000 );
InfoTree->header()->hide(); InfoTree->header()->hide();
InfoTree->header()->setStretchLastSection(false); // InfoTree->header()->setStretchLastSection(false);
InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents); // InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents);
layout->addWidget(InfoTree, 1, 0 ); layout->addWidget(InfoTree, 1, 0 );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment