FEATURE: Added "Amount downloaded/left" columns to transfer list

Fix bug in column display menu
This commit is contained in:
Christophe Dumez 2010-11-16 17:43:54 +00:00
commit a640b08414
7 changed files with 21 additions and 3 deletions

View file

@ -60,6 +60,8 @@ public:
QStyleOptionViewItemV2 opt = QItemDelegate::setOptions(index, option);
painter->save();
switch(index.column()){
case TorrentModelItem::TR_AMOUNT_DOWNLOADED:
case TorrentModelItem::TR_AMOUNT_LEFT:
case TorrentModelItem::TR_SIZE:{
QItemDelegate::drawBackground(painter, opt, index);
opt.displayAlignment = Qt::AlignRight;