QTreeView/Fusion style : Draw child indicator correct in RTL-mode
Fusion style did not honor direction option when drawing the child indicator. This lead to a wrong rendering of QTreeView in right-to-left mode. Task-number: QTBUG-63396 Change-Id: I2d5de03d7c831e3caabcc9269617eecb9338f163 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>bb10
parent
d813c66bfc
commit
45a5f28aa4
|
|
@ -472,8 +472,10 @@ void QFusionStyle::drawPrimitive(PrimitiveElement elem,
|
|||
break;
|
||||
if (option->state & State_Open)
|
||||
drawPrimitive(PE_IndicatorArrowDown, option, painter, widget);
|
||||
else
|
||||
drawPrimitive(PE_IndicatorArrowRight, option, painter, widget);
|
||||
else {
|
||||
const bool reverse = (option->direction == Qt::RightToLeft);
|
||||
drawPrimitive(reverse ? PE_IndicatorArrowLeft : PE_IndicatorArrowRight, option, painter, widget);
|
||||
}
|
||||
break;
|
||||
}
|
||||
#if QT_CONFIG(tabbar)
|
||||
|
|
|
|||
Loading…
Reference in New Issue