diff --git a/src/plasma/containment.cpp b/src/plasma/containment.cpp index eb6538500..1c49f05d3 100644 --- a/src/plasma/containment.cpp +++ b/src/plasma/containment.cpp @@ -102,7 +102,7 @@ void Containment::init() if (d->type == Types::NoContainmentType) { //setContainmentType(Plasma::Types::DesktopContainment); //Try to determine the containment type. It must be done as soon as possible - QString type = pluginInfo().property(QStringLiteral("X-Plasma-ContainmentType")).toString(); + QString type = pluginMetaData().value(QStringLiteral("X-Plasma-ContainmentType")); if (type == QLatin1String("Panel")) { setContainmentType(Plasma::Types::PanelContainment); diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp index 7da8673ff..2f100b818 100644 --- a/src/plasmaquick/appletquickitem.cpp +++ b/src/plasmaquick/appletquickitem.cpp @@ -403,7 +403,7 @@ AppletQuickItem::AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent) } if (d->applet->pluginMetaData().isValid()) { - const QString rootPath = d->applet->pluginInfo().property(QStringLiteral("X-Plasma-RootPath")).toString(); + const QString rootPath = d->applet->pluginMetaData().value(QStringLiteral("X-Plasma-RootPath")); if (!rootPath.isEmpty()) { d->qmlObject->setTranslationDomain(QLatin1String("plasma_applet_") + rootPath); } else { diff --git a/src/plasmaquick/configview.cpp b/src/plasmaquick/configview.cpp index 8d9d518aa..73e497487 100644 --- a/src/plasmaquick/configview.cpp +++ b/src/plasmaquick/configview.cpp @@ -94,7 +94,7 @@ void ConfigViewPrivate::init() KDeclarative::KDeclarative kdeclarative; kdeclarative.setDeclarativeEngine(q->engine()); - const QString rootPath = applet.data()->pluginInfo().property(QStringLiteral("X-Plasma-RootPath")).toString(); + const QString rootPath = applet.data()->pluginMetaData().value(QStringLiteral("X-Plasma-RootPath")); if (!rootPath.isEmpty()) { kdeclarative.setTranslationDomain("plasma_applet_" + rootPath); } else { @@ -143,7 +143,7 @@ void ConfigViewPrivate::init() delete object; } - const QStringList kcms = applet.data()->pluginInfo().property(QStringLiteral("X-Plasma-ConfigPlugins")).toStringList(); + const QStringList kcms = KPluginMetaData::readStringList(applet.data()->pluginMetaData().rawData(), QStringLiteral("X-Plasma-ConfigPlugins")); if (!kcms.isEmpty()) { if (!configModel) { configModel = new ConfigModel(q);