summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorKrzysztof Starecki <krzysztof.starecki@gmail.com>2018-12-31 16:08:47 +0100
committerKrzysztof Starecki <krzysztof.starecki@gmail.com>2018-12-31 16:12:25 +0100
commit412a0620820d26294ddbc306b137692c65e8e980 (patch)
treeda224d813b1298d95422cacc2fbfda06a09f71ec /src/mainwindow.cpp
parent03823a433a27bb5f9a94973c47e1408dd83cc5c0 (diff)
Tweak styling options for downloads tab, port Paper Light theme for reference
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 328c0b2d..b4d77085 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5154,8 +5154,7 @@ void MainWindow::initDownloadView()
connect(ui->downloadFilterEdit, SIGNAL(textChanged(QString)), sortProxy, SLOT(updateFilter(QString)));
connect(ui->downloadFilterEdit, SIGNAL(textChanged(QString)), this, SLOT(downloadFilterChanged(QString)));
- ui->downloadView->setObjectName("downloadView");
- ui->downloadView->setModel(sortProxy);
+ ui->downloadView->setModel(sortProxy);
ui->downloadView->setManager(m_OrganizerCore.downloadManager());
ui->downloadView->setItemDelegate(new DownloadProgressDelegate(m_OrganizerCore.downloadManager(), sortProxy, ui->downloadView));
ui->downloadView->setUniformRowHeights(true);
@@ -5180,9 +5179,9 @@ void MainWindow::initDownloadView()
void MainWindow::updateDownloadView()
{
if (m_OrganizerCore.settings().compactDownloads())
- ui->downloadView->setProperty("compact", true);
+ ui->downloadView->setProperty("downloadView", "compact");
else
- ui->downloadView->setProperty("compact", false);
+ ui->downloadView->setProperty("downloadView", "standard");
ui->downloadView->style()->unpolish(ui->downloadView);
ui->downloadView->style()->polish(ui->downloadView);
}