use X-Plasma-EngineName isntead
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=743045
This commit is contained in:
parent
1c91abba17
commit
8bcd5a7a04
@ -115,7 +115,7 @@ Plasma::DataEngine* DataEngineManager::loadDataEngine(const QString& name)
|
||||
}
|
||||
|
||||
// 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",
|
||||
constraint);
|
||||
QString error;
|
||||
@ -158,7 +158,7 @@ QStringList DataEngineManager::knownEngines()
|
||||
QStringList engines;
|
||||
KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine");
|
||||
foreach (KService::Ptr service, offers) {
|
||||
engines.append(service->property("X-EngineName").toString());
|
||||
engines.append(service->property("X-Plasma-EngineName").toString());
|
||||
}
|
||||
|
||||
return engines;
|
||||
|
@ -36,6 +36,6 @@ Comment[x-test]=xxPlasma Data Enginexx
|
||||
Comment[zh_CN]=Plasma 数据引擎
|
||||
Comment[zh_TW]=Plasma 資料引擎
|
||||
|
||||
[PropertyDef::X-EngineName]
|
||||
[PropertyDef::X-Plasma-EngineName]
|
||||
Type=QString
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user