Add a small gap between progress bars

This commit is contained in:
Vladimir Golovnev (Glassez) 2025-07-10 21:53:23 +03:00
commit a2bb1d8b43
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -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;