Commit e73d898a authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Fix version checks

KPluginFactory::instantiatePlugin() was added in KF5 5.86
parent 73e6725b
Pipeline #79810 passed with stage
in 10 minutes and 52 seconds
......@@ -101,7 +101,7 @@ QVector<PimCommon::CustomToolsPlugin *> CustomToolsPluginManagerPrivate::plugins
void CustomToolsPluginManagerPrivate::loadPlugin(CustomToolsPluginInfo *item)
{
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 85, 0)
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 86, 0)
KPluginLoader pluginLoader(item->metaData.fileName());
if (pluginLoader.factory()) {
item->plugin = pluginLoader.factory()->create<PimCommon::CustomToolsPlugin>(q, QVariantList() << item->saveName());
......
......@@ -91,7 +91,7 @@ bool AddressessLineEditPluginManagerPrivate::initializePlugins()
void AddressessLineEditPluginManagerPrivate::loadPlugin(AddressessLineEditPluginInfo *item)
{
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 85, 0)
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 86, 0)
KPluginLoader pluginLoader(item->metaDataFileName);
if (pluginLoader.factory()) {
item->plugin = pluginLoader.factory()->create<PimCommon::AddressessLineEditAbstractPlugin>(q, QVariantList() << item->metaDataFileNameBaseName);
......
Supports Markdown
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