From: Hannah von Reth Date: Mon, 19 Oct 2020 13:29:51 +0000 (+0200) Subject: Draw active progressbar X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7c65d38ba411b8c644f19bcad7b6a434a47d2592;p=nextcloud-desktop.git Draw active progressbar Pass a widget to the progressbar in the folder delegate to draw the correct active state --- 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;