Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/ConfigIcons.qml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 36 | Item { | |||
---|---|---|---|---|---|
51 | property alias cfg_sortDirsFirst: sortDirsFirst.checked | 51 | property alias cfg_sortDirsFirst: sortDirsFirst.checked | ||
52 | property alias cfg_toolTips: toolTips.checked | 52 | property alias cfg_toolTips: toolTips.checked | ||
53 | property alias cfg_selectionMarkers: selectionMarkers.checked | 53 | property alias cfg_selectionMarkers: selectionMarkers.checked | ||
54 | property alias cfg_popups: popups.checked | 54 | property alias cfg_popups: popups.checked | ||
55 | property alias cfg_previews: previews.checked | 55 | property alias cfg_previews: previews.checked | ||
56 | property alias cfg_previewPlugins: previewPluginsDialog.previewPlugins | 56 | property alias cfg_previewPlugins: previewPluginsDialog.previewPlugins | ||
57 | property alias cfg_viewMode: viewMode.currentIndex | 57 | property alias cfg_viewMode: viewMode.currentIndex | ||
58 | property alias cfg_iconSize: iconSize.value | 58 | property alias cfg_iconSize: iconSize.value | ||
59 | property alias cfg_labelWidth: labelWidth.currentIndex | ||||
59 | property alias cfg_textLines: textLines.value | 60 | property alias cfg_textLines: textLines.value | ||
60 | 61 | | |||
61 | readonly property bool lockedByKiosk: !KAuthorized.authorize("editable_desktop_icons") | 62 | readonly property bool lockedByKiosk: !KAuthorized.authorize("editable_desktop_icons") | ||
62 | 63 | | |||
63 | IconDialog { | 64 | IconDialog { | ||
64 | id: iconDialog | 65 | id: iconDialog | ||
65 | onIconNameChanged: cfg_icon = iconName || "folder" | 66 | onIconNameChanged: cfg_icon = iconName || "folder" | ||
66 | } | 67 | } | ||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 69 | Kirigami.FormLayout { | |||
223 | } | 224 | } | ||
224 | 225 | | |||
225 | 226 | | |||
226 | // Size section | 227 | // Size section | ||
227 | Slider { | 228 | Slider { | ||
228 | id: iconSize | 229 | id: iconSize | ||
229 | visible: !isPopup || viewMode.currentIndex === 1 | 230 | visible: !isPopup || viewMode.currentIndex === 1 | ||
230 | 231 | | |||
231 | Kirigami.FormData.label: i18n("Size:") | 232 | Kirigami.FormData.label: i18n("Icon size:") | ||
232 | 233 | | |||
233 | minimumValue: 0 | 234 | minimumValue: 0 | ||
234 | maximumValue: 5 | 235 | maximumValue: 5 | ||
235 | stepSize: 1 | 236 | stepSize: 1 | ||
236 | tickmarksEnabled: true | 237 | tickmarksEnabled: true | ||
237 | } | 238 | } | ||
238 | 239 | | |||
239 | RowLayout { | 240 | RowLayout { | ||
Show All 11 Lines | |||||
251 | Label { | 252 | Label { | ||
252 | Layout.alignment: Qt.AlignRight | 253 | Layout.alignment: Qt.AlignRight | ||
253 | visible: !isPopup || viewMode.currentIndex === 1 | 254 | visible: !isPopup || viewMode.currentIndex === 1 | ||
254 | 255 | | |||
255 | text: i18n("Large") | 256 | text: i18n("Large") | ||
256 | } | 257 | } | ||
257 | } | 258 | } | ||
258 | 259 | | |||
260 | ComboBox { | ||||
261 | id: labelWidth | ||||
262 | visible: !isPopup || viewMode.currentIndex === 1 | ||||
263 | | ||||
264 | Kirigami.FormData.label: i18n("Label width:") | ||||
265 | | ||||
266 | model: [ | ||||
broulik: You can just use a JavaScript `Array`:
```
model: [
i18n("Narrow"),
i18n("Medium")… | |||||
267 | i18n("Narrow"), | ||||
268 | i18n("Medium"), | ||||
269 | i18n("Wide") | ||||
270 | ] | ||||
271 | } | ||||
272 | | ||||
259 | SpinBox { | 273 | SpinBox { | ||
260 | id: textLines | 274 | id: textLines | ||
261 | visible: !isPopup || viewMode.currentIndex === 1 | 275 | visible: !isPopup || viewMode.currentIndex === 1 | ||
262 | 276 | | |||
263 | Kirigami.FormData.label: i18n("Text lines:") | 277 | Kirigami.FormData.label: i18n("Text lines:") | ||
264 | 278 | | |||
265 | minimumValue: 1 | 279 | minimumValue: 1 | ||
266 | maximumValue: 10 | 280 | maximumValue: 10 | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |
You can just use a JavaScript Array:
This way you can also use i18n for translation