From a2bb1d8b434a31b59e0177297df25977423e97ff Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Thu, 10 Jul 2025 21:53:23 +0300 Subject: [PATCH] Add a small gap between progress bars --- src/gui/progressbarpainter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/progressbarpainter.cpp b/src/gui/progressbarpainter.cpp index 1f0d40c7c..1630cfaa5 100644 --- a/src/gui/progressbarpainter.cpp +++ b/src/gui/progressbarpainter.cpp @@ -65,7 +65,7 @@ void ProgressBarPainter::paint(QPainter *painter, const QStyleOptionViewItem &op styleOption.text = text; styleOption.textVisible = true; // 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 styleOption.state = option.state | QStyle::State_Horizontal;