mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kio: bump kmetainformationrc version
This commit is contained in:
parent
c852b56374
commit
b24f8387bb
1 changed files with 14 additions and 2 deletions
|
@ -100,7 +100,7 @@ KFileMetaDataWidget::Private::~Private()
|
||||||
|
|
||||||
void KFileMetaDataWidget::Private::initMetaInfoSettings()
|
void KFileMetaDataWidget::Private::initMetaInfoSettings()
|
||||||
{
|
{
|
||||||
const int currentVersion = 3; // increase version, if the blacklist of disabled
|
const int currentVersion = 4; // increase version, if the blacklist of disabled
|
||||||
// properties should be updated
|
// properties should be updated
|
||||||
|
|
||||||
KConfig config("kmetainformationrc", KConfig::NoGlobals);
|
KConfig config("kmetainformationrc", KConfig::NoGlobals);
|
||||||
|
@ -112,7 +112,7 @@ void KFileMetaDataWidget::Private::initMetaInfoSettings()
|
||||||
config.deleteGroup("Show");
|
config.deleteGroup("Show");
|
||||||
KConfigGroup settings = config.group("Show");
|
KConfigGroup settings = config.group("Show");
|
||||||
|
|
||||||
static const char* const enabledProperties[] = {
|
static const char* enabledProperties[] = {
|
||||||
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment",
|
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment",
|
||||||
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize",
|
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize",
|
||||||
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#depends",
|
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#depends",
|
||||||
|
@ -142,10 +142,22 @@ void KFileMetaDataWidget::Private::initMetaInfoSettings()
|
||||||
0 // mandatory last entry
|
0 // mandatory last entry
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char* disabledProperties[] = {
|
||||||
|
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url",
|
||||||
|
"http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName",
|
||||||
|
"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf",
|
||||||
|
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
||||||
|
0 // mandatory last entry
|
||||||
|
};
|
||||||
|
|
||||||
for (int i = 0; enabledProperties[i] != 0; ++i) {
|
for (int i = 0; enabledProperties[i] != 0; ++i) {
|
||||||
settings.writeEntry(enabledProperties[i], true);
|
settings.writeEntry(enabledProperties[i], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; disabledProperties[i] != 0; ++i) {
|
||||||
|
settings.writeEntry(disabledProperties[i], false);
|
||||||
|
}
|
||||||
|
|
||||||
// mark the group as initialized
|
// mark the group as initialized
|
||||||
config.group("Misc").writeEntry("version", currentVersion);
|
config.group("Misc").writeEntry("version", currentVersion);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue