Changeset View
Changeset View
Standalone View
Standalone View
kcms/workspaceoptions/package/contents/ui/main.qml
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 112 | QQC2.RadioButton { | |||
---|---|---|---|---|---|
116 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | 116 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | ||
117 | checked: kcm.globalsSettings.singleClick | 117 | checked: kcm.globalsSettings.singleClick | ||
118 | onToggled: kcm.globalsSettings.singleClick = true | 118 | onToggled: kcm.globalsSettings.singleClick = true | ||
119 | QQC2.ButtonGroup.group: singleClickGroup | 119 | QQC2.ButtonGroup.group: singleClickGroup | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | QQC2.RadioButton { | 122 | QQC2.RadioButton { | ||
123 | id: doubleClick | 123 | id: doubleClick | ||
124 | text: i18n("Double-click to open files and folders (single click to select)") | 124 | text: i18n("Double-click to open files and folders") | ||
125 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | 125 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | ||
126 | checked: !kcm.globalsSettings.singleClick | 126 | checked: !kcm.globalsSettings.singleClick | ||
127 | onToggled: kcm.globalsSettings.singleClick = false | 127 | onToggled: kcm.globalsSettings.singleClick = false | ||
128 | QQC2.ButtonGroup.group: singleClickGroup | 128 | QQC2.ButtonGroup.group: singleClickGroup | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | QQC2.Label { | ||||
davidedmundson: For almost all lablels:
Layout.fillWidth: true
either elide or wrap | |||||
132 | Layout.fillWidth: true | ||||
133 | text: singleClick.checked ? i18n("Select by clicking on item's selection marker") : i18n("Select by single-clicking") | ||||
134 | elide: Text.ElideRight | ||||
135 | font.pointSize: theme.smallestFont.pointSize | ||||
136 | } | ||||
137 | | ||||
131 | Item { | 138 | Item { | ||
132 | Kirigami.FormData.isSection: false | 139 | Kirigami.FormData.isSection: false | ||
133 | } | 140 | } | ||
134 | 141 | | |||
135 | // scroll handle settings | 142 | // scroll handle settings | ||
136 | 143 | | |||
137 | QQC2.ButtonGroup { id: scrollHandleBehaviorGroup } | 144 | QQC2.ButtonGroup { id: scrollHandleBehaviorGroup } | ||
138 | 145 | | |||
Show All 10 Lines | |||||
149 | QQC2.RadioButton { | 156 | QQC2.RadioButton { | ||
150 | id: scrollBarLeftClickWarpsScrollHandle | 157 | id: scrollBarLeftClickWarpsScrollHandle | ||
151 | text: i18nc("@radio part of a complete sentence: 'Clicking in scrollbar track scrolls to the clicked location'", "Scrolls to the clicked location") | 158 | text: i18nc("@radio part of a complete sentence: 'Clicking in scrollbar track scrolls to the clicked location'", "Scrolls to the clicked location") | ||
152 | enabled: !kcm.globalsSettings.isImmutable("scrollbarLeftClickNavigatesByPage") | 159 | enabled: !kcm.globalsSettings.isImmutable("scrollbarLeftClickNavigatesByPage") | ||
153 | checked: !kcm.globalsSettings.scrollbarLeftClickNavigatesByPage | 160 | checked: !kcm.globalsSettings.scrollbarLeftClickNavigatesByPage | ||
154 | onToggled: kcm.globalsSettings.scrollbarLeftClickNavigatesByPage = false | 161 | onToggled: kcm.globalsSettings.scrollbarLeftClickNavigatesByPage = false | ||
155 | QQC2.ButtonGroup.group: scrollHandleBehaviorGroup | 162 | QQC2.ButtonGroup.group: scrollHandleBehaviorGroup | ||
156 | } | 163 | } | ||
164 | | ||||
165 | // Don't show a label for what middle-clicking does when using the | ||||
166 | // "click to zoom the handle" behavior because Qt doesn't invert the | ||||
ndavis: This is incorrect. Middle clicking still jumps to the clicked location. | |||||
Oh darn, so it does. I checked the docs and tried setting SH_ScrollBar_MiddleClickAbsolutePosition explicitly, but it looks like there's actually no option to do page-by-page navigation for clicking in the scroll track when using the left-click-warps-slider style :/ ngraham: Oh darn, so it does. I checked the docs and tried setting… | |||||
167 | // middle-click functionality when using this; see | ||||
168 | // https://bugreports.qt.io/browse/QTBUG-80728 | ||||
169 | QQC2.Label { | ||||
170 | Layout.fillWidth: true | ||||
171 | visible: scrollbarLeftClickNavigatesByPage.checked | ||||
172 | text: i18n("Middle-click to scroll to clicked location") | ||||
173 | elide: Text.ElideRight | ||||
174 | font.pointSize: theme.smallestFont.pointSize | ||||
175 | } | ||||
157 | } | 176 | } | ||
158 | } | 177 | } |
For almost all lablels:
Layout.fillWidth: true
either elide or wrap