Changeset View
Changeset View
Standalone View
Standalone View
kcms/workspaceoptions/package/contents/ui/main.qml
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2018 Furkan Tokac <furkantokac34@gmail.com> | 2 | * Copyright 2018 Furkan Tokac <furkantokac34@gmail.com> | ||
3 | * Copyright (C) 2019 Nate Graham <nate@kde.org> | ||||
3 | * | 4 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 5 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | 7 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | 8 | * (at your option) any later version. | ||
8 | * | 9 | * | ||
9 | * This program is distributed in the hope that it will be useful, | 10 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 32 | Kirigami.FormLayout { | |||
101 | } | 102 | } | ||
102 | 103 | | |||
103 | Item { | 104 | Item { | ||
104 | Kirigami.FormData.isSection: false | 105 | Kirigami.FormData.isSection: false | ||
105 | } | 106 | } | ||
106 | 107 | | |||
107 | // Click behavior settings | 108 | // Click behavior settings | ||
108 | 109 | | |||
110 | QQC2.ButtonGroup { id: singleClickGroup } | ||||
111 | | ||||
109 | QQC2.RadioButton { | 112 | QQC2.RadioButton { | ||
110 | id: singleClick | 113 | id: singleClick | ||
111 | Kirigami.FormData.label: i18n("Click behavior:") | 114 | Kirigami.FormData.label: i18n("Click behavior:") | ||
112 | text: i18n("Single-click to open files and folders") | 115 | text: i18n("Single-click to open files and folders") | ||
113 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | 116 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | ||
114 | checked: kcm.globalsSettings.singleClick | 117 | checked: kcm.globalsSettings.singleClick | ||
115 | onToggled: kcm.globalsSettings.singleClick = true | 118 | onToggled: kcm.globalsSettings.singleClick = true | ||
119 | QQC2.ButtonGroup.group: singleClickGroup | ||||
116 | } | 120 | } | ||
117 | 121 | | |||
118 | QQC2.RadioButton { | 122 | QQC2.RadioButton { | ||
119 | id: doubleClick | 123 | id: doubleClick | ||
120 | text: i18n("Double-click to open files and folders (single click to select)") | 124 | text: i18n("Double-click to open files and folders (single click to select)") | ||
121 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | 125 | enabled: !kcm.globalsSettings.isImmutable("singleClick") | ||
122 | checked: !kcm.globalsSettings.singleClick | 126 | checked: !kcm.globalsSettings.singleClick | ||
123 | onToggled: kcm.globalsSettings.singleClick = false | 127 | onToggled: kcm.globalsSettings.singleClick = false | ||
128 | QQC2.ButtonGroup.group: singleClickGroup | ||||
129 | } | ||||
130 | | ||||
131 | Item { | ||||
132 | Kirigami.FormData.isSection: false | ||||
133 | } | ||||
134 | | ||||
135 | // scroll handle settings | ||||
136 | | ||||
137 | QQC2.ButtonGroup { id: scrollHandleBehaviorGroup } | ||||
138 | | ||||
ndavis: I feel like it's too easy to mistake the word trough for though or through. I think it would be… | |||||
ngraham: How about "Scrollbar track?" | |||||
That would work too. I said groove because that's the term that the Breeze QStyle uses in the code, but I don't think it matters too much whether we use groove or track as long as we do it consistently. I slightly prefer groove. ndavis: That would work too. I said groove because that's the term that the Breeze QStyle uses in the… | |||||
139 | QQC2.RadioButton { | ||||
140 | id: scrollbarLeftClickNavigatesByPage | ||||
141 | Kirigami.FormData.label: i18n("Clicking in scrollbar track:") | ||||
142 | text: i18nc("@radio part of a complete sentence: 'Clicking in scrollbar track scrolls one page up or down'", "Scrolls one page up or down") | ||||
143 | enabled: !kcm.globalsSettings.isImmutable("scrollbarLeftClickNavigatesByPage") | ||||
144 | checked: kcm.globalsSettings.scrollbarLeftClickNavigatesByPage | ||||
145 | onToggled: kcm.globalsSettings.scrollbarLeftClickNavigatesByPage = true | ||||
146 | QQC2.ButtonGroup.group: scrollHandleBehaviorGroup | ||||
124 | } | 147 | } | ||
125 | 148 | | |||
149 | QQC2.RadioButton { | ||||
150 | 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") | ||||
152 | enabled: !kcm.globalsSettings.isImmutable("scrollbarLeftClickNavigatesByPage") | ||||
153 | checked: !kcm.globalsSettings.scrollbarLeftClickNavigatesByPage | ||||
154 | onToggled: kcm.globalsSettings.scrollbarLeftClickNavigatesByPage = false | ||||
155 | QQC2.ButtonGroup.group: scrollHandleBehaviorGroup | ||||
156 | } | ||||
126 | } | 157 | } | ||
127 | } | 158 | } |
I feel like it's too easy to mistake the word trough for though or through. I think it would be better to use "scrollbar groove" instead of "scroll trough"