Windows: Fix the progress bar with high contrast themes #2654

Setting the palette seems to interfere with Qt's Windows Vista theme
and this isn't set on the QStyleOptionProgressBarV2 by QProgressBar.
This commit is contained in:
Jocelyn Turcotte 2015-08-06 20:23:23 +02:00
parent 4441d3b342
commit 55e55b0806

View File

@ -294,7 +294,6 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
pBarOpt.maximum = 100;
pBarOpt.progress = overallPercent;
pBarOpt.orientation = Qt::Horizontal;
pBarOpt.palette = palette;
pBarOpt.rect = pBRect;
QApplication::style()->drawControl( QStyle::CE_ProgressBar, &pBarOpt, painter );