Draw active progressbar
authorHannah von Reth <hannah.vonreth@owncloud.com>
Mon, 19 Oct 2020 13:29:51 +0000 (15:29 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:25 +0000 (10:59 +0100)
Pass a widget to the progressbar in the folder delegate to draw the correct active state

src/gui/folderstatusdelegate.cpp

index 9d0b686f9a66220f21e2a4c372192be4ef228f94..ed08bf9e2f1c37b94e124a4c104a89f2f3924241 100644 (file)
@@ -325,8 +325,8 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
         pBarOpt.progress = overallPercent;
         pBarOpt.orientation = Qt::Horizontal;
         pBarOpt.rect = QStyle::visualRect(option.direction, option.rect, pBRect);
+        QApplication::style()->drawControl(QStyle::CE_ProgressBar, &pBarOpt, painter, option.widget);
 
-        QApplication::style()->drawControl(QStyle::CE_ProgressBar, &pBarOpt, painter);
 
         // Overall Progress Text
         QRect overallProgressRect;