ContainmentCategories -> X-Plasma-ContainmentType
containments can have one and only one type
This commit is contained in:
parent
28a93f2c14
commit
dc9075f157
@ -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);
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user