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 <axel.spoerl@qt.io> (cherry picked from commit 161015d29f9af500d9c3899f9a6aea26f9ca1827) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e7c7402802
commit
a053dc51d5
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user