Commit 491ce0f1 authored by Stefan Brüns's avatar Stefan Brüns

[Baloo KCM] Expose "Index hidden" config setting

Summary:
Also inset both "Index file content" and "Index hidden" so it is more
obvious both are subordinate to the global "Enable indexing".

Reviewers: #baloo, #vdg, ngraham

Reviewed By: #baloo, #vdg, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28024
parent 12a9ccb9
......@@ -49,13 +49,31 @@ KCM.SimpleKCM {
}
}
QQC2.CheckBox {
id: indexFileContents
text: i18n("Also index file content")
enabled: fileSearchEnabled.checked && !kcm.balooSettings.isImmutable("onlyBasicIndexing")
checked: !kcm.balooSettings.onlyBasicIndexing
onCheckStateChanged: kcm.balooSettings.onlyBasicIndexing = !checked
RowLayout {
Layout.fillWidth: true
Item {
width: units.largeSpacing
}
ColumnLayout {
QQC2.CheckBox {
id: indexFileContents
text: i18n("Also index file content")
enabled: fileSearchEnabled.checked && !kcm.balooSettings.isImmutable("onlyBasicIndexing")
checked: !kcm.balooSettings.onlyBasicIndexing
onCheckStateChanged: kcm.balooSettings.onlyBasicIndexing = !checked
}
QQC2.CheckBox {
id: indexHiddenFolders
text: i18n("Index hidden files and folders")
enabled: fileSearchEnabled.checked && !kcm.balooSettings.isImmutable("indexHiddenFolders")
checked: kcm.balooSettings.indexHiddenFolders
onCheckStateChanged: kcm.balooSettings.indexHiddenFolders = checked
}
}
}
Item {
Layout.preferredHeight: Kirigami.Units.gridUnit
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment