diff options
| author | Krzysztof Starecki <krzysztof.starecki@gmail.com> | 2018-12-31 20:53:35 +0100 |
|---|---|---|
| committer | Krzysztof Starecki <krzysztof.starecki@gmail.com> | 2018-12-31 20:53:35 +0100 |
| commit | 895556f257c2625ac53371089835aab0d01979be (patch) | |
| tree | daf4d66f4bf2e6e8de93d89810d6e93c8ef4e115 /src/downloadlist.cpp | |
| parent | e7c59b26e1c04251c38df038e93990a29ae09808 (diff) | |
Add filetime column to download tab
Diffstat (limited to 'src/downloadlist.cpp')
| -rw-r--r-- | src/downloadlist.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp index a0286aef..b21a5306 100644 --- a/src/downloadlist.cpp +++ b/src/downloadlist.cpp @@ -47,7 +47,7 @@ int DownloadList::rowCount(const QModelIndex&) const int DownloadList::columnCount(const QModelIndex&) const
{
- return 3;
+ return 4;
}
@@ -68,10 +68,11 @@ QVariant DownloadList::headerData(int section, Qt::Orientation orientation, int if ((role == Qt::DisplayRole) &&
(orientation == Qt::Horizontal)) {
switch (section) {
- case COL_NAME : return tr("Name");
- case COL_SIZE : return tr("Size");
- case COL_STATUS : return tr("Status");
- default : return QVariant();
+ case COL_NAME: return tr("Name");
+ case COL_SIZE: return tr("Size");
+ case COL_STATUS: return tr("Status");
+ case COL_FILETIME: return tr("Filetime");
+ default: return QVariant();
}
} else {
return QAbstractItemModel::headerData(section, orientation, role);
@@ -93,6 +94,7 @@ QVariant DownloadList::data(const QModelIndex &index, int role) const switch (index.column()) {
case COL_NAME: return m_MetaDisplay ? m_Manager->getDisplayName(index.row()) : m_Manager->getFileName(index.row());
case COL_SIZE: return sizeFormat(m_Manager->getFileSize(index.row()));
+ case COL_FILETIME: return m_Manager->getFileTime(index.row());
case COL_STATUS:
switch (m_Manager->getState(index.row())) {
// STATE_DOWNLOADING handled by DownloadProgressDelegate
|
