list applets which have an X-KDE-ParentApp= entry in their .desktop file
svn path=/trunk/KDE/kdelibs/; revision=1002131
This commit is contained in:
parent
0caae66c3a
commit
51434fc5f1
@ -1750,7 +1750,7 @@ KPluginInfo::List Applet::listAppletInfo(const QString &category,
|
|||||||
QString constraint;
|
QString constraint;
|
||||||
|
|
||||||
if (parentApp.isEmpty()) {
|
if (parentApp.isEmpty()) {
|
||||||
constraint.append("not exist [X-KDE-ParentApp]");
|
constraint.append("(not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')");
|
||||||
} else {
|
} else {
|
||||||
constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'");
|
constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'");
|
||||||
}
|
}
|
||||||
@ -1821,7 +1821,7 @@ QStringList Applet::listCategories(const QString &parentApp, bool visibleOnly)
|
|||||||
QString constraint = "exist [X-KDE-PluginInfo-Category]";
|
QString constraint = "exist [X-KDE-PluginInfo-Category]";
|
||||||
|
|
||||||
if (parentApp.isEmpty()) {
|
if (parentApp.isEmpty()) {
|
||||||
constraint.append(" and not exist [X-KDE-ParentApp]");
|
constraint.append("and (not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')");
|
||||||
} else {
|
} else {
|
||||||
constraint.append(" and [X-KDE-ParentApp] == '").append(parentApp).append("'");
|
constraint.append(" and [X-KDE-ParentApp] == '").append(parentApp).append("'");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user