Changeset View
Changeset View
Standalone View
Standalone View
kcms/baloo/package/contents/ui/main.qml
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 42 | QQC2.CheckBox { | |||
---|---|---|---|---|---|
44 | text: i18n("Enable File Search") | 44 | text: i18n("Enable File Search") | ||
45 | enabled: !kcm.balooSettings.isImmutable("indexingEnabled") | 45 | enabled: !kcm.balooSettings.isImmutable("indexingEnabled") | ||
46 | checked: kcm.balooSettings.indexingEnabled | 46 | checked: kcm.balooSettings.indexingEnabled | ||
47 | onCheckStateChanged: { | 47 | onCheckStateChanged: { | ||
48 | kcm.balooSettings.indexingEnabled = checked | 48 | kcm.balooSettings.indexingEnabled = checked | ||
49 | } | 49 | } | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | RowLayout { | ||||
53 | Layout.fillWidth: true | ||||
54 | | ||||
55 | Item { | ||||
56 | width: units.largeSpacing | ||||
57 | } | ||||
58 | | ||||
59 | ColumnLayout { | ||||
ngraham: Instead adding these new layouts, you could just set the following on each checkbox that needs… | |||||
The effect would be different, as currently there already is some margin. Also, this has to be repeated for each item, and I plan to add (at least) one more option. bruns: The effect would be different, as currently there already is some margin.
Also, this has to be… | |||||
52 | QQC2.CheckBox { | 60 | QQC2.CheckBox { | ||
53 | id: indexFileContents | 61 | id: indexFileContents | ||
54 | text: i18n("Also index file content") | 62 | text: i18n("Also index file content") | ||
55 | enabled: fileSearchEnabled.checked && !kcm.balooSettings.isImmutable("onlyBasicIndexing") | 63 | enabled: fileSearchEnabled.checked && !kcm.balooSettings.isImmutable("onlyBasicIndexing") | ||
56 | checked: !kcm.balooSettings.onlyBasicIndexing | 64 | checked: !kcm.balooSettings.onlyBasicIndexing | ||
57 | onCheckStateChanged: kcm.balooSettings.onlyBasicIndexing = !checked | 65 | onCheckStateChanged: kcm.balooSettings.onlyBasicIndexing = !checked | ||
58 | } | 66 | } | ||
67 | QQC2.CheckBox { | ||||
68 | id: indexHiddenFolders | ||||
69 | text: i18n("Index hidden files and folders") | ||||
70 | enabled: fileSearchEnabled.checked && !kcm.balooSettings.isImmutable("indexHiddenFolders") | ||||
71 | checked: kcm.balooSettings.indexHiddenFolders | ||||
72 | onCheckStateChanged: kcm.balooSettings.indexHiddenFolders = checked | ||||
73 | } | ||||
74 | } | ||||
75 | } | ||||
76 | | ||||
59 | Item { | 77 | Item { | ||
60 | Layout.preferredHeight: Kirigami.Units.gridUnit | 78 | Layout.preferredHeight: Kirigami.Units.gridUnit | ||
61 | } | 79 | } | ||
62 | QQC2.Label { | 80 | QQC2.Label { | ||
63 | text: i18n("Do not search in these locations:") | 81 | text: i18n("Do not search in these locations:") | ||
64 | } | 82 | } | ||
65 | 83 | | |||
66 | QQC2.ScrollView { | 84 | QQC2.ScrollView { | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
Instead adding these new layouts, you could just set the following on each checkbox that needs to be indented:
IMO that's a bit cleaner.