1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(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

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 ) ); tr_snprintf( buf, sizeof( buf ), "%d%%", (int)tr_truncd( 100.0 * tor.percentDone( ), 0 ) );
myProgressBarStyle->text = buf; myProgressBarStyle->text = buf;
myProgressBarStyle->textVisible = true; myProgressBarStyle->textVisible = true;
myProgressBarStyle->textAlignment = Qt::AlignCenter;
setProgressBarPercentDone( option, tor ); setProgressBarPercentDone( option, tor );
style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter ); style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );