summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2019-01-03 01:35:13 +0100
committerGitHub <noreply@github.com>2019-01-03 01:35:13 +0100
commit474fdca3947d37863a31771ca0e67ea34515d6d1 (patch)
tree9408f5a3cc4fe50853f5703c26f894629ca203fa /src/mainwindow.cpp
parent683d17784b026d857732a8d52bc26709ba0e0322 (diff)
parentc54bc7edfac52a26ede7c97b9866e545c2f31194 (diff)
Merge pull request #610 from przester/download-tab
Tweak download tab column resizing
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ab3fe2c6..0f21af94 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5170,11 +5170,6 @@ void MainWindow::initDownloadView()
ui->downloadView->setModel(sortProxy);
ui->downloadView->setManager(m_OrganizerCore.downloadManager());
ui->downloadView->setItemDelegate(new DownloadProgressDelegate(m_OrganizerCore.downloadManager(), sortProxy, ui->downloadView));
- ui->downloadView->setUniformRowHeights(false);
- ui->downloadView->header()->setStretchLastSection(false);
- ui->downloadView->header()->setSectionResizeMode(QHeaderView::Interactive);
- ui->downloadView->header()->setSectionResizeMode(0, QHeaderView::Stretch);
- ui->downloadView->sortByColumn(1, Qt::DescendingOrder);
updateDownloadView();
connect(ui->downloadView, SIGNAL(installDownload(int)), &m_OrganizerCore, SLOT(installDownload(int)));
@@ -5208,6 +5203,7 @@ void MainWindow::updateDownloadView()
ui->downloadView->setMetaDisplay(m_OrganizerCore.settings().metaDownloads());
ui->downloadView->style()->unpolish(ui->downloadView);
ui->downloadView->style()->polish(ui->downloadView);
+ qobject_cast<DownloadListHeader*>(ui->downloadView->header())->customResizeSections();
m_OrganizerCore.downloadManager()->refreshList();
}