From 60cff8e9aaea929aa97bcaaa515ba25502730e00 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Mon, 9 Oct 2023 20:38:19 +0200 Subject: [PATCH] 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 --- src/widgets/styles/qfusionstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)