(trunk qt) more progressbar improvements from kjg
This commit is contained in:
parent
9aaa5b3c4b
commit
222295758a
|
@ -152,7 +152,7 @@ TorrentDelegateMin :: drawTorrent( QPainter * painter, const QStyleOptionViewIte
|
|||
myProgressBarStyle->rect = barArea;
|
||||
myProgressBarStyle->direction = option.direction;
|
||||
myProgressBarStyle->palette = option.palette;
|
||||
myProgressBarStyle->palette.setCurrentColorGroup( QPalette::Disabled );
|
||||
myProgressBarStyle->palette.setCurrentColorGroup( cg );
|
||||
myProgressBarStyle->state = progressBarState;
|
||||
myProgressBarStyle->progress = int(myProgressBarStyle->minimum + ((tor.percentDone() * (myProgressBarStyle->maximum - myProgressBarStyle->minimum))));
|
||||
style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );
|
||||
|
|
|
@ -367,7 +367,7 @@ TorrentDelegate :: drawTorrent( QPainter * painter, const QStyleOptionViewItem&
|
|||
myProgressBarStyle->rect = barArea;
|
||||
myProgressBarStyle->direction = option.direction;
|
||||
myProgressBarStyle->palette = option.palette;
|
||||
myProgressBarStyle->palette.setCurrentColorGroup( QPalette::Disabled );
|
||||
myProgressBarStyle->palette.setCurrentColorGroup( cg );
|
||||
myProgressBarStyle->state = progressBarState;
|
||||
myProgressBarStyle->progress = int(myProgressBarStyle->minimum + ((tor.percentDone() * (myProgressBarStyle->maximum - myProgressBarStyle->minimum))));
|
||||
style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );
|
||||
|
|
Loading…
Reference in New Issue