Commit 1d7a4e40 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Port away from KPluginLoader::metaData.

parent 30d428c6
Pipeline #121243 passed with stage
in 58 seconds
......@@ -63,14 +63,13 @@ bool CoreBackendManager::load(const QString& name)
KPluginLoader loader(path);
KPluginFactory* factory = loader.factory();
KPluginMetaData metadata(loader);
if (factory != nullptr) {
d->m_Backend = factory->create<CoreBackend>(nullptr);
QString id = loader.metaData().toVariantMap().value(QStringLiteral("MetaData"))
.toMap().value(QStringLiteral("KPlugin")).toMap().value(QStringLiteral("Id")).toString();
QString version = loader.metaData().toVariantMap().value(QStringLiteral("MetaData"))
.toMap().value(QStringLiteral("KPlugin")).toMap().value(QStringLiteral("Version")).toString();
QString id = metadata.pluginId();
QString version = metadata.version();
if (id.isEmpty())
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment