Make filename column resize to text, needed for long package names.

Previously the empty Size & Date columns resize to their headers, and the
Filename column gets squashed. Also made the dialog wide enough.
This commit is contained in:
Michael Rennie
2017-04-07 14:28:57 +01:00
committed by Baldur Karlsson
parent 80354228c3
commit 3b8aefa061
2 changed files with 5 additions and 5 deletions
@@ -576,10 +576,10 @@ VirtualFileDialog::VirtualFileDialog(CaptureContext &ctx, QWidget *parent)
ui->fileList->sortByColumn(0, Qt::AscendingOrder);
ui->fileList->header()->setSectionResizeMode(0, QHeaderView::Stretch);
ui->fileList->header()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
ui->fileList->header()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
ui->fileList->header()->setSectionResizeMode(3, QHeaderView::ResizeToContents);
ui->fileList->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
ui->fileList->header()->setSectionResizeMode(1, QHeaderView::Stretch);
ui->fileList->header()->setSectionResizeMode(2, QHeaderView::Stretch);
ui->fileList->header()->setSectionResizeMode(3, QHeaderView::Stretch);
ui->filter->addItems({tr("Executables"), tr("All Files")});