Merge pull request #14872 from jagannatharjun/pfix-back

Correctly draw progress background with stylesheet (backport v4_3_x)
This commit is contained in:
Chocobo1 2021-04-30 10:09:31 +08:00 committed by GitHub
commit 9f8a6e8fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}