From e6447c8f28d2ace44335c0efc92a3ac17d2ac234 Mon Sep 17 00:00:00 2001 From: jagannatharjun 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(); }