From ab906f17de21991bfe7edb48c9225d825a2f45c9 Mon Sep 17 00:00:00 2001
From: jagannatharjun <jagannatharjun11@gmail.com>
Date: Sat, 24 Apr 2021 18:04:23 +0530
Subject: [PATCH] Correctly draw progress background with stylesheet

fixes #14731
---
 src/gui/progressbarpainter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gui/progressbarpainter.cpp b/src/gui/progressbarpainter.cpp
index 1a85b8a8e..7b0f5623e 100644
--- a/src/gui/progressbarpainter.cpp
+++ b/src/gui/progressbarpainter.cpp
@@ -66,7 +66,7 @@ void ProgressBarPainter::paint(QPainter *painter, const QStyleOptionViewItem &op
 
     painter->save();
     const QStyle *style = m_dummyProgressBar.style();
-    style->drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter);
+    style->drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter, option.widget);
     style->drawControl(QStyle::CE_ProgressBar, &styleOption, painter, &m_dummyProgressBar);
     painter->restore();
 }