summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qfusionstyle.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-10-09 20:38:19 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-10-11 21:53:26 +0200
commit60cff8e9aaea929aa97bcaaa515ba25502730e00 (patch)
treec5423da1d66b9e0e4e64bd4dd095400b4cf1a2a4 /src/widgets/styles/qfusionstyle.cpp
parenta608a7c29886fd95ea8569776036673e6c7639f2 (diff)
Fusion style: misc fix painting vertical slider
The slider handle has a small bug not painting the underlying rectangle with the correct direction which lead to a small visual glitch only visible with a high-dpi screen. Change-Id: Ie75e034b85542228ed7a8372dc7b9a419731630d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/styles/qfusionstyle.cpp')
-rw-r--r--src/widgets/styles/qfusionstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp
index 01c5919593..6521b2a3f8 100644
--- a/src/widgets/styles/qfusionstyle.cpp
+++ b/src/widgets/styles/qfusionstyle.cpp
@@ -2938,7 +2938,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
handlePainter.setPen(Qt::NoPen);
handlePainter.setBrush(QColor(0, 0, 0, 40));
- handlePainter.drawRect(r.adjusted(-1, 2, 1, -2));
+ handlePainter.drawRect(horizontal ? r.adjusted(-1, 2, 1, -2) : r.adjusted(2, -1, -2, 1));
handlePainter.setPen(QPen(d->outline(option->palette)));
if (option->state & State_HasFocus && option->state & State_KeyboardFocusChange)