mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Add a small gap between progress bars
This commit is contained in:
parent
f5a93be544
commit
a2bb1d8b43
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ void ProgressBarPainter::paint(QPainter *painter, const QStyleOptionViewItem &op
|
||||||
styleOption.text = text;
|
styleOption.text = text;
|
||||||
styleOption.textVisible = true;
|
styleOption.textVisible = true;
|
||||||
// QStyleOption fields
|
// QStyleOption fields
|
||||||
styleOption.rect = option.rect;
|
styleOption.rect = option.rect.adjusted(0, 1, 0, -1);
|
||||||
// Qt 6 requires QStyle::State_Horizontal to be set for correctly drawing horizontal progress bar
|
// Qt 6 requires QStyle::State_Horizontal to be set for correctly drawing horizontal progress bar
|
||||||
styleOption.state = option.state | QStyle::State_Horizontal;
|
styleOption.state = option.state | QStyle::State_Horizontal;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue