ContainmentCategories -> X-Plasma-ContainmentType

containments can have one and only one type
This commit is contained in:
Marco Martin 2013-03-07 19:28:06 +01:00
parent 28a93f2c14
commit dc9075f157
2 changed files with 3 additions and 3 deletions

View File

@ -600,7 +600,7 @@ KPluginInfo::List PluginLoader::listContainmentsOfType(const QString &type,
constraint.append(" and ");
}
constraint.append("'").append(type).append("' ~in [X-Plasma-ContainmentCategories]");
constraint.append("'").append(type).append("' ~in [X-Plasma-ContainmentType]");
}
if (!category.isEmpty()) {
@ -633,7 +633,7 @@ QStringList PluginLoader::listContainmentTypes()
QSet<QString> types;
foreach (const KPluginInfo &containmentInfo, containmentInfos) {
QStringList theseTypes = containmentInfo.service()->property("X-Plasma-ContainmentCategories").toStringList();
QStringList theseTypes = containmentInfo.service()->property("X-Plasma-ContainmentType").toStringList();
foreach (const QString &type, theseTypes) {
types.insert(type);
}

View File

@ -207,7 +207,7 @@ public:
/**
* Returns a list of all known Containments that match the parameters.
*
* @param type Only Containments with this string in X-Plasma-ContainmentCategories
* @param type Only Containments with this string in X-Plasma-ContainmentType
* in their .desktop files will be returned. Common values are panel and
* desktop
* @param category Only applets matchin this category will be returned.