(trunk qt) #4281 "visualize seed progress, like the web client does" -- refinement from rb07 in comment:11

This commit is contained in:
Jordan Lee 2011-05-29 05:05:18 +00:00
parent 071333dc55
commit 26499dff7d
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ TorrentDelegateMin :: drawTorrent( QPainter * painter, const QStyleOptionViewIte
tr_snprintf( buf, sizeof( buf ), "%d%%", (int)tr_truncd( 100.0 * tor.percentDone( ), 0 ) );
myProgressBarStyle->text = buf;
myProgressBarStyle->textVisible = true;
myProgressBarStyle->textAlignment = Qt::AlignCenter;
setProgressBarPercentDone( option, tor );
style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );