summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-07-21 23:43:04 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-07-21 23:43:04 +0200
commitd02df7e4b4d6b539ed744135eee565530c24f006 (patch)
tree7bc10cc86069f61fd864f19b38144aed42f5eb63 /src
parentcc63717060229ce40279f4ac1edd0907110fee87 (diff)
Avoided downloads defaulting to "File Time" sorting at each startup.
Improved downloads tab header sizes and resize policy.
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp4
-rw-r--r--src/mainwindow.ui7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 17db79d6..c9874b20 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4345,8 +4345,8 @@ void MainWindow::updateDownloadListDelegate()
connect(ui->downloadFilterEdit, SIGNAL(textChanged(QString)), this, SLOT(downloadFilterChanged(QString)));
ui->downloadView->setModel(sortProxy);
- ui->downloadView->sortByColumn(1, Qt::DescendingOrder);
- ui->downloadView->header()->resizeSections(QHeaderView::Fixed);
+ //ui->downloadView->sortByColumn(1, Qt::DescendingOrder);
+ ui->downloadView->header()->resizeSections(QHeaderView::Stretch);
connect(ui->downloadView->itemDelegate(), SIGNAL(installDownload(int)), &m_OrganizerCore, SLOT(installDownload(int)));
connect(ui->downloadView->itemDelegate(), SIGNAL(queryInfo(int)), m_OrganizerCore.downloadManager(), SLOT(queryInfo(int)));
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index d8873d4f..8de34485 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -1243,7 +1243,7 @@ p, li { white-space: pre-wrap; }
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy">
- <enum>Qt::ScrollBarAlwaysOff</enum>
+ <enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="dragEnabled">
<bool>true</bool>
@@ -1276,7 +1276,10 @@ p, li { white-space: pre-wrap; }
<bool>true</bool>
</property>
<attribute name="headerDefaultSectionSize">
- <number>100</number>
+ <number>50</number>
+ </attribute>
+ <attribute name="headerMinimumSectionSize">
+ <number>15</number>
</attribute>
<attribute name="headerStretchLastSection">
<bool>true</bool>