Add "Total Size" column to transfer list

This column shows the total size of the related torrent taking into
account also the unwanted data.

Closes #1233.
This commit is contained in:
Gabriele 2014-10-26 18:02:46 +01:00
parent b1af99ffba
commit b63f647c2c
4 changed files with 7 additions and 2 deletions

View file

@ -58,7 +58,8 @@ void TransferListDelegate::paint(QPainter * painter, const QStyleOptionViewItem
case TorrentModelItem::TR_AMOUNT_UPLOADED:
case TorrentModelItem::TR_AMOUNT_LEFT:
case TorrentModelItem::TR_COMPLETED:
case TorrentModelItem::TR_SIZE: {
case TorrentModelItem::TR_SIZE:
case TorrentModelItem::TR_TOTAL_SIZE: {
QItemDelegate::drawBackground(painter, opt, index);
opt.displayAlignment = Qt::AlignRight;
QItemDelegate::drawDisplay(painter, opt, option.rect, misc::friendlyUnit(index.data().toLongLong()));