Kaydet (Commit) 273df176 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

tdf#80512 KDE4: fix RTL scrollbar handling

Just invert the scrollbar the same way gtk+ does by checking the
button positions and adjust the drawing style accordingly.

Change-Id: I3475c33e074c1509a73da618a4efa44dc61a1a77
üst 4c068949
......@@ -472,6 +472,8 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
option.sliderValue = sbVal->mnCur;
option.sliderPosition = sbVal->mnCur;
option.pageStep = sbVal->mnVisibleSize;
if (part == PART_DRAW_BACKGROUND_HORZ)
option.upsideDown = sbVal->maButton1Rect.Left() > sbVal->maButton2Rect.Left();
//setup the active control...always the slider
if (sbVal->mnThumbState & ControlState::ROLLOVER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment