Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/kcm/libinput/main.qml
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 63 | function syncValuesFromBackend() { | |||
---|---|---|---|---|---|
71 | tapToClick.load() | 71 | tapToClick.load() | ||
72 | tapAndDrag.load() | 72 | tapAndDrag.load() | ||
73 | tapAndDragLock.load() | 73 | tapAndDragLock.load() | ||
74 | multiTap.load() | 74 | multiTap.load() | ||
75 | scrollMethod.load() | 75 | scrollMethod.load() | ||
76 | naturalScroll.load() | 76 | naturalScroll.load() | ||
77 | rightClickMethod.load() | 77 | rightClickMethod.load() | ||
78 | middleClickMethod.load() | 78 | middleClickMethod.load() | ||
79 | disableHorizontalScrolling.load() | ||||
79 | 80 | | |||
80 | loading = false | 81 | loading = false | ||
81 | } | 82 | } | ||
82 | 83 | | |||
83 | Kirigami.FormLayout { | 84 | Kirigami.FormLayout { | ||
84 | id: formLayout | 85 | id: formLayout | ||
85 | 86 | | |||
86 | // Device | 87 | // Device | ||
▲ Show 20 Lines • Show All 476 Lines • ▼ Show 20 Line(s) | 548 | Controls.CheckBox { | |||
563 | hoverEnabled: true | 564 | hoverEnabled: true | ||
564 | Controls.ToolTip { | 565 | Controls.ToolTip { | ||
565 | text: i18nd("kcm_touchpad", "Touchscreen like scrolling.") | 566 | text: i18nd("kcm_touchpad", "Touchscreen like scrolling.") | ||
566 | visible: parent.hovered | 567 | visible: parent.hovered | ||
567 | delay: 1000 | 568 | delay: 1000 | ||
568 | } | 569 | } | ||
569 | } | 570 | } | ||
570 | 571 | | |||
572 | Controls.CheckBox { | ||||
573 | id: disableHorizontalScrolling | ||||
574 | text: i18nd("kcm_touchpad", "Disable horizontal scrolling") | ||||
575 | | ||||
576 | function load() { | ||||
577 | visible = touchpad.supportsHorizontalScrolling | ||||
578 | enabled = touchpad.supportsHorizontalScrolling | ||||
579 | checked = enabled && !touchpad.horizontalScrolling | ||||
580 | } | ||||
581 | | ||||
582 | onCheckedChanged: { | ||||
583 | if (enabled && !root.loading) { | ||||
584 | touchpad.horizontalScrolling = !checked | ||||
585 | root.changeSignal() | ||||
586 | } | ||||
587 | } | ||||
588 | | ||||
589 | hoverEnabled: true | ||||
590 | Controls.ToolTip { | ||||
591 | text: i18nd("kcm_touchpad", "Disable horizontal scrolling") | ||||
592 | visible: parent.hovered | ||||
593 | delay: 1000 | ||||
594 | } | ||||
595 | } | ||||
596 | | ||||
571 | Item { | 597 | Item { | ||
572 | Kirigami.FormData.isSection: false | 598 | Kirigami.FormData.isSection: false | ||
573 | } | 599 | } | ||
574 | 600 | | |||
575 | Layouts.ColumnLayout { | 601 | Layouts.ColumnLayout { | ||
576 | Kirigami.FormData.label: i18nd("kcm_touchpad", "Right-click :") | 602 | Kirigami.FormData.label: i18nd("kcm_touchpad", "Right-click :") | ||
577 | Kirigami.FormData.buddyFor: rightClickMethodAreas | 603 | Kirigami.FormData.buddyFor: rightClickMethodAreas | ||
578 | id: rightClickMethod | 604 | id: rightClickMethod | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |