mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
Merge pull request #14872 from jagannatharjun/pfix-back
Correctly draw progress background with stylesheet (backport v4_3_x)
This commit is contained in:
commit
9f8a6e8fb1
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ void ProgressBarPainter::paint(QPainter *painter, const QStyleOptionViewItem &op
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
const QStyle *style = m_dummyProgressBar.style();
|
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);
|
style->drawControl(QStyle::CE_ProgressBar, &styleOption, painter, &m_dummyProgressBar);
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue