Add a small gap between progress bars
Some checks are pending
CI - File health / Check (push) Waiting to run
CI - macOS / Build (push) Waiting to run
CI - Python / Check (push) Waiting to run
CI - Ubuntu / Build (push) Waiting to run
CI - WebUI / Check (push) Waiting to run
CI - Windows / Build (push) Waiting to run

PR #22977.
This commit is contained in:
Vladimir Golovnev 2025-07-13 08:45:37 +03:00 committed by GitHub
commit b18a964a0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;