Commit 3983d807 authored by Alexander Stippich's avatar Alexander Stippich

Cleanup default filters for baloo-widgets

The property names do not match any names defined in KFileMetaData.
While the intention of the previous filters clearly was to hide most of the EXIF information,
users seem to use the provided information (see bug report), so show most of it.
Hide photo metering mode, photo sharpness and white balance, as they seem to be quite useless.

CCBUG: 343273

Reviewers: ngraham, bruns

Reviewed By: bruns

Subscribers: #baloo

Tags: #baloo

Differential Revision:
parent c1b1555a
......@@ -41,7 +41,7 @@ MetadataFilter::~MetadataFilter()
void MetadataFilter::initMetaInformationSettings()
const int currentVersion = 10; // increase version, if the blacklist of disabled
const int currentVersion = 11; // increase version, if the blacklist of disabled
// properties should be updated
KConfig config("baloofileinformationrc", KConfig::NoGlobals);
......@@ -57,32 +57,14 @@ void MetadataFilter::initMetaInformationSettings()
......@@ -91,11 +73,14 @@ void MetadataFilter::initMetaInformationSettings()
nullptr // mandatory last entry
for (int i = 0; disabledProperties[i] != nullptr; ++i) {
settings.writeEntry(disabledProperties[i], false);
for (const auto property : disabledProperties) {
settings.writeEntry(property, false);
// mark the group as initialized
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