Skip to content
Commit c7bfd1c7 authored by Jan Blackquill's avatar Jan Blackquill 🌈
Browse files

kstyle: fix qqc2 desktop style sliders in RtL

We don't do any mirroring of the slider groove rects or tickmarks based on layout direction,
and this causes qqc2-desktop-style sliders to render in the wrong direction.
Swapping the leftRect and the rightRect when option->direction == Qt::RightToLeft
fixes this.

This wasn't broken with QWidgets because QSlider relies on (ab)using the upsideDown option
in order to achieve mirroring of the groove instead of option->direction, and consequently,
this change doesn't affect Qt widgets apps at all.

BUG: 430101
(cherry picked from commit e8b1d4aa)
parent 5302e3e7
Loading
Loading
Loading
Pipeline #184879 passed with stage
in 3 minutes and 46 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment