mirror of
https://github.com/transmission/transmission.git
synced 2026-04-17 23:54:19 +01:00
(trunk qt) #4281 "visualize seed progress, like the web client does" -- refinement from rb07 in comment:11
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user