From 7c65d38ba411b8c644f19bcad7b6a434a47d2592 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 19 Oct 2020 15:29:51 +0200 Subject: [PATCH] Draw active progressbar Pass a widget to the progressbar in the folder delegate to draw the correct active state --- src/gui/folderstatusdelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index 9d0b686f9..ed08bf9e2 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -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; -- 2.39.5