Remove deprecated ctor

This commit is contained in:
Antonis Tsiapaliokas 2013-08-28 12:08:28 +03:00 committed by Martin Gräßlin
parent fcff62c4b6
commit 973a2e8f22

View file

@ -63,7 +63,8 @@ void EffectConfig::openConfig(const QString &effectName)
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect"); KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
for(KService::Ptr service : offers) { for(KService::Ptr service : offers) {
KPluginInfo plugin(service); const QString effectPluginPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kde5/services/"+ service->entryPath(), QStandardPaths::LocateFile);
KPluginInfo plugin(effectPluginPath);
if (plugin.name() == effectName) { if (plugin.name() == effectName) {
QString effectConfig = effectName.toLower().remove(" ") + "_config"; QString effectConfig = effectName.toLower().remove(" ") + "_config";
KCModuleProxy *proxy = new KCModuleProxy(effectConfig); KCModuleProxy *proxy = new KCModuleProxy(effectConfig);