use X-Plasma-EngineName isntead

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=743045
This commit is contained in:
Aaron J. Seigo 2007-11-29 18:52:26 +00:00
parent 1c91abba17
commit 8bcd5a7a04
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ Plasma::DataEngine* DataEngineManager::loadDataEngine(const QString& name)
} }
// load the engine, add it to the engines // load the engine, add it to the engines
QString constraint = QString("[X-EngineName] == '%1'").arg(name); QString constraint = QString("[X-Plasma-EngineName] == '%1'").arg(name);
KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine", KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine",
constraint); constraint);
QString error; QString error;
@ -158,7 +158,7 @@ QStringList DataEngineManager::knownEngines()
QStringList engines; QStringList engines;
KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine"); KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine");
foreach (KService::Ptr service, offers) { foreach (KService::Ptr service, offers) {
engines.append(service->property("X-EngineName").toString()); engines.append(service->property("X-Plasma-EngineName").toString());
} }
return engines; return engines;

View File

@ -36,6 +36,6 @@ Comment[x-test]=xxPlasma Data Enginexx
Comment[zh_CN]=Plasma Comment[zh_CN]=Plasma
Comment[zh_TW]=Plasma Comment[zh_TW]=Plasma
[PropertyDef::X-EngineName] [PropertyDef::X-Plasma-EngineName]
Type=QString Type=QString