Browse Source

Correctly draw progress background with stylesheet

fixes #14731
adaptive-webui-19844
jagannatharjun 4 years ago
parent
commit
ab906f17de
  1. 2
      src/gui/progressbarpainter.cpp

2
src/gui/progressbarpainter.cpp

@ -66,7 +66,7 @@ void ProgressBarPainter::paint(QPainter *painter, const QStyleOptionViewItem &op @@ -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();
}

Loading…
Cancel
Save