Fusion style/QScrollbar: use correct arrow rect
Pass the correct arrow rect to the draw arrow function. This amends 0ef5d5dba3e23224c372be9c9f1144c8a73b6a49 Pick-to: 6.8 Task-number: QTBUG-127104 Change-Id: I78392fb112a0dbf9ac4e034a4dbdc91077b59d24 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
fffe0021ea
commit
161015d29f
@ -2532,7 +2532,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
|
||||
@ -2557,7 +2557,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