Port KGlobal::mainComponent() to KComponentData::mainComponent()

except in klibrary/kpluginloader, where I just removed the now-useless
argument.
This commit is contained in:
David Faure 2012-09-16 22:31:57 +02:00
parent f128824f4b
commit e23f57ef9e

View File

@ -566,7 +566,7 @@ QString AppletPrivate::parentAppConstraint(const QString &parentApp)
{ {
if (parentApp.isEmpty()) { if (parentApp.isEmpty()) {
return QString("((not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '') or [X-KDE-ParentApp] == '%1')") return QString("((not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '') or [X-KDE-ParentApp] == '%1')")
.arg(KGlobal::mainComponent().aboutData()->appName()); .arg(KComponentData::mainComponent().aboutData()->appName());
} }
return QString("[X-KDE-ParentApp] == '%1'").arg(parentApp); return QString("[X-KDE-ParentApp] == '%1'").arg(parentApp);