summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 80db447c..224ce0a9 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5185,10 +5185,18 @@ void MainWindow::initDownloadView()
void MainWindow::updateDownloadView()
{
- if (m_OrganizerCore.settings().compactDownloads())
+ // set the view attribute and default row sizes
+ if (m_OrganizerCore.settings().compactDownloads()) {
ui->downloadView->setProperty("downloadView", "compact");
- else
+ setStyleSheet("DownloadListWidget::item { padding: 4px; }");
+ } else {
ui->downloadView->setProperty("downloadView", "standard");
+ setStyleSheet("DownloadListWidget::item { padding: 16px; }");
+ }
+
+ // reapply global stylesheet on the widget level (!) to override the defaults
+ ui->downloadView->setStyleSheet(styleSheet());
+
ui->downloadView->setMetaDisplay(m_OrganizerCore.settings().metaDownloads());
ui->downloadView->style()->unpolish(ui->downloadView);
ui->downloadView->style()->polish(ui->downloadView);