From a053dc51d550a15225b1e47152fd61d4844cadf7 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Tue, 13 Aug 2024 18:29:12 +0200 Subject: [PATCH] Fusion style/QScrollbar: use correct arrow rect Pass the correct arrow rect to the draw arrow function. This amends 0ef5d5dba3e23224c372be9c9f1144c8a73b6a49 Task-number: QTBUG-127104 Change-Id: I78392fb112a0dbf9ac4e034a4dbdc91077b59d24 Reviewed-by: Axel Spoerl (cherry picked from commit 161015d29f9af500d9c3899f9a6aea26f9ca1827) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/styles/qfusionstyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index b8795379bdb..f41533ed29d 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -2536,7 +2536,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption Qt::ArrowType arrowType = Qt::UpArrow; if (option->state & State_Horizontal) arrowType = option->direction == Qt::LeftToRight ? Qt::LeftArrow : Qt::RightArrow; - qt_fusion_draw_arrow(arrowType, painter, option, upRect, arrowColor); + qt_fusion_draw_arrow(arrowType, painter, option, upRect.adjusted(1, 1, 0, 0), arrowColor); } // The AddLine (down/right) button @@ -2565,7 +2565,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption Qt::ArrowType arrowType = Qt::DownArrow; if (option->state & State_Horizontal) arrowType = option->direction == Qt::LeftToRight ? Qt::RightArrow : Qt::LeftArrow; - qt_fusion_draw_arrow(arrowType, painter, option, downRect, arrowColor); + qt_fusion_draw_arrow(arrowType, painter, option, downRect.adjusted(1, 1, 0, 0), arrowColor); } }