From 55e55b0806d7084ceca88c8f16465966972bedca Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 6 Aug 2015 20:23:23 +0200 Subject: [PATCH] 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. --- src/gui/folderstatusdelegate.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index 6c2ab443fd..5e303f036b 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -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 );