Changeset View
Changeset View
Standalone View
Standalone View
kcms/baloo/package/contents/ui/main.qml
Show All 27 Lines | |||||
28 | KCM.SimpleKCM { | 28 | KCM.SimpleKCM { | ||
29 | id: root | 29 | id: root | ||
30 | 30 | | |||
31 | KCM.ConfigModule.quickHelp: i18n("This module lets you configure the file indexer and search functionality.") | 31 | KCM.ConfigModule.quickHelp: i18n("This module lets you configure the file indexer and search functionality.") | ||
32 | ColumnLayout { | 32 | ColumnLayout { | ||
33 | anchors.fill: parent | 33 | anchors.fill: parent | ||
34 | anchors.margins: Kirigami.Units.largeSpacing | 34 | anchors.margins: Kirigami.Units.largeSpacing | ||
35 | 35 | | |||
36 | Kirigami.InlineMessage { | ||||
37 | id: turnOffIndexingWarning | ||||
38 | Layout.fillWidth: true | ||||
39 | visible: false | ||||
40 | type: Kirigami.MessageType.Warning | ||||
41 | showCloseButton: true | ||||
42 | text: i18n("Turning off file indexing will remove all existing index data."); | ||||
43 | | ||||
tcanabrava: stray newline | |||||
44 | } | ||||
45 | | ||||
36 | QQC2.Label { | 46 | QQC2.Label { | ||
37 | text: i18n("File Search helps you quickly locate all your files based on their content.") | 47 | text: i18n("File Search helps you quickly locate all your files based on their content.") | ||
38 | } | 48 | } | ||
39 | 49 | | |||
40 | QQC2.CheckBox { | 50 | QQC2.CheckBox { | ||
41 | id: fileSearchEnabled | 51 | id: fileSearchEnabled | ||
42 | text: i18n("Enable File Search") | 52 | text: i18n("Enable File Search") | ||
43 | checked: kcm.indexing | 53 | checked: kcm.indexing | ||
44 | onCheckStateChanged: { | 54 | onCheckStateChanged: { | ||
55 | turnOffIndexingWarning.visible = !checked; | ||||
45 | kcm.indexing = checked | 56 | kcm.indexing = checked | ||
46 | } | 57 | } | ||
47 | } | 58 | } | ||
48 | 59 | | |||
49 | QQC2.CheckBox { | 60 | QQC2.CheckBox { | ||
50 | id: indexFileContents | 61 | id: indexFileContents | ||
51 | text: i18n("Also index file content") | 62 | text: i18n("Also index file content") | ||
52 | enabled: fileSearchEnabled.checked | 63 | enabled: fileSearchEnabled.checked | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |
stray newline