|
|
|
@ -190,7 +190,9 @@ QVariant TorrentModelItem::data(int column, int role) const
@@ -190,7 +190,9 @@ QVariant TorrentModelItem::data(int column, int role) const
|
|
|
|
|
case TR_UPLIMIT: |
|
|
|
|
return m_torrent.upload_limit(); |
|
|
|
|
case TR_AMOUNT_DOWNLOADED: |
|
|
|
|
return static_cast<qlonglong>(m_torrent.total_wanted_done()); |
|
|
|
|
return static_cast<qlonglong>(m_torrent.all_time_download()); |
|
|
|
|
case TR_AMOUNT_UPLOADED: |
|
|
|
|
return static_cast<qlonglong>(m_torrent.all_time_upload()); |
|
|
|
|
case TR_AMOUNT_LEFT: |
|
|
|
|
return static_cast<qlonglong>(m_torrent.total_wanted() - m_torrent.total_wanted_done()); |
|
|
|
|
case TR_TIME_ELAPSED: |
|
|
|
@ -261,6 +263,7 @@ QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
@@ -261,6 +263,7 @@ QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
|
|
|
|
|
case TorrentModelItem::TR_DLLIMIT: return tr("Down Limit", "i.e: Download limit"); |
|
|
|
|
case TorrentModelItem::TR_UPLIMIT: return tr("Up Limit", "i.e: Upload limit"); |
|
|
|
|
case TorrentModelItem::TR_AMOUNT_DOWNLOADED: return tr("Amount downloaded", "Amount of data downloaded (e.g. in MB)"); |
|
|
|
|
case TorrentModelItem::TR_AMOUNT_UPLOADED: return tr("Amount uploaded", "Amount of data uploaded (e.g. in MB)"); |
|
|
|
|
case TorrentModelItem::TR_AMOUNT_LEFT: return tr("Amount left", "Amount of data left to download (e.g. in MB)"); |
|
|
|
|
case TorrentModelItem::TR_TIME_ELAPSED: return tr("Time Active", "Time (duration) the torrent is active (not paused)"); |
|
|
|
|
default: |
|
|
|
@ -279,6 +282,7 @@ QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
@@ -279,6 +282,7 @@ QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
|
|
|
|
|
case TorrentModelItem::TR_DLLIMIT: |
|
|
|
|
case TorrentModelItem::TR_UPLIMIT: |
|
|
|
|
case TorrentModelItem::TR_AMOUNT_DOWNLOADED: |
|
|
|
|
case TorrentModelItem::TR_AMOUNT_UPLOADED: |
|
|
|
|
case TorrentModelItem::TR_AMOUNT_LEFT: |
|
|
|
|
return Qt::AlignRight; |
|
|
|
|
case TorrentModelItem::TR_PROGRESS: |
|
|
|
|