kcms/touchpad: In left-handed mode, RMB is in the bottom-left corner

Switch the text of the radio button that's usually titled
"Right-click by: Pressing bottom-right corner" accordingly.
This commit is contained in:
Jakob Petsovits 2026-09-30 16:05:51 -04:00
parent c2e0bd28b3
commit 5280d7b702

View file

@ -472,7 +472,11 @@ KCMUtils.SimpleKCM {
subtitle: rightClickMethodAreas.Accessible.description
contentItem: QQC2.RadioButton {
id: rightClickMethodAreas
text: i18ndc("kcm_touchpad", "@option:radio Completes the sentence 'right-click by pressing bottom-right corner'", "Pressing bottom-right corner")
text: (
root.device?.leftHanded ?? false
? i18ndc("kcm_touchpad", "@option:radio Completes the sentence 'right-click by pressing bottom-left corner'", "Pressing bottom-left corner")
: i18ndc("kcm_touchpad", "@option:radio Completes the sentence 'right-click by pressing bottom-right corner'", "Pressing bottom-right corner")
)
enabled: root.device?.supportsClickMethodAreas ?? false
checked: enabled && (root.device?.clickMethodAreas ?? false)
Accessible.description: (