kcms/touchpad: make LayoutMirroring work and make it align subordinate items properly
KCMUtils has some magic that makes loaded KQuickConfigModules automatically respect layoutDirection. kcm_touchpad has a qml UI, but is not implemented a a KQuickConfigModule, but as a KConfigModule that manually loads qml files. Thus, the automagic does not happen, and kcm_touchpad will not reflect the locale's reading direction nor the --reverse flag.
This change explicitly sets the relevant LayoutMirroring properties.
Several items are indented to indicate that they are subordinate controls or info text associated to another item. This is implemented by adjusting the left padding; but padding values are not flipped with layout direction so RtL languages have everything level.
This change sets a right padding value instead if LayoutMirroring is enabled.
header | header |
---|---|
![]() |
![]() |
The title of the kcm is still in the wrong place. But that's a pre-existing issue with QtWidgets kcms.