summaryrefslogtreecommitdiff
path: root/src/downloadlist.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-07-17 00:10:03 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-07-17 00:10:03 +0200
commit1867c20f02d44f98154955a89686fe9edf09d7f5 (patch)
tree9dfbe151145b5713a29ab35f3b24585cae066a7f /src/downloadlist.cpp
parent2524d65441e99cbb14037144b8af60e1d25e1179 (diff)
Added sortable "Size" column to the downlaods tab.
Diffstat (limited to 'src/downloadlist.cpp')
-rw-r--r--src/downloadlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp
index f13cdef1..1e31973d 100644
--- a/src/downloadlist.cpp
+++ b/src/downloadlist.cpp
@@ -40,7 +40,7 @@ int DownloadList::rowCount(const QModelIndex&) const
int DownloadList::columnCount(const QModelIndex&) const
{
- return 3;
+ return 4;
}
@@ -63,6 +63,7 @@ QVariant DownloadList::headerData(int section, Qt::Orientation orientation, int
switch (section) {
case COL_NAME: return tr("Name");
case COL_FILETIME: return tr("Filetime");
+ case COL_SIZE: return tr("Size");
default: return tr("Done");
}
} else {