mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
-changend order of the columns
-set correct Alignment for each column git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@348 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3f582afe5a
commit
0234c5f5cf
2 changed files with 12 additions and 10 deletions
|
@ -93,7 +93,7 @@ void ULListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
|||
multi *= 1024.0;
|
||||
}
|
||||
}
|
||||
painter->drawText(option.rect, Qt::AlignCenter, temp);
|
||||
painter->drawText(option.rect, Qt::AlignRight, temp);
|
||||
break;
|
||||
case UTRANSFERRED:
|
||||
transferred = index.data().toLongLong();
|
||||
|
@ -112,14 +112,14 @@ void ULListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
|||
multi *= 1024.0;
|
||||
}
|
||||
}
|
||||
painter->drawText(option.rect, Qt::AlignCenter, temp);
|
||||
painter->drawText(option.rect, Qt::AlignRight, temp);
|
||||
break;
|
||||
case ULSPEED:
|
||||
ulspeed = index.data().toDouble();
|
||||
temp.clear();
|
||||
temp.sprintf("%.2f", ulspeed/1024.);
|
||||
temp += " KB/s";
|
||||
painter->drawText(option.rect, Qt::AlignCenter, temp);
|
||||
painter->drawText(option.rect, Qt::AlignRight, temp);
|
||||
break;
|
||||
case UPROGRESS:
|
||||
progress = index.data().toDouble();
|
||||
|
@ -153,6 +153,9 @@ void ULListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
|||
}
|
||||
painter->drawText(option.rect.translated(pixmap.size().width(), 0), Qt::AlignLeft, index.data().toString());
|
||||
break;
|
||||
case USTATUS:
|
||||
painter->drawText(option.rect.translated(pixmap.size().width(), 0), Qt::AlignLeft, index.data().toString());
|
||||
break;
|
||||
default:
|
||||
painter->drawText(option.rect, Qt::AlignCenter, index.data().toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue