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:
parent
071333dc55
commit
26499dff7d
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue