Commit 55247334 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

port to non-deprecated plugin loading

parent 53b91632
Pipeline #154575 passed with stage
in 2 minutes and 27 seconds
......@@ -196,12 +196,12 @@ void KateConsole::loadConsoleIfNeeded()
/**
* get konsole part factory
*/
KPluginFactory *factory = KPluginLoader(QStringLiteral("konsolepart")).factory();
KPluginFactory *factory = KPluginFactory::loadFactory(QStringLiteral("konsolepart")).plugin;
if (!factory) {
return;
}
m_part = factory->create<KParts::ReadOnlyPart>(this, this);
m_part = factory->create<KParts::ReadOnlyPart>(this);
if (!m_part) {
return;
......
......@@ -47,7 +47,7 @@ KPluginFactory *KateProjectInfoViewTerminal::pluginFactory()
if (s_pluginFactory) {
return s_pluginFactory;
}
return s_pluginFactory = KPluginLoader(QStringLiteral("konsolepart")).factory();
return s_pluginFactory = KPluginFactory::loadFactory(QStringLiteral("konsolepart")).plugin;
}
void KateProjectInfoViewTerminal::showEvent(QShowEvent *)
......@@ -76,7 +76,7 @@ void KateProjectInfoViewTerminal::loadTerminal()
/**
* create part
*/
m_konsolePart = pluginFactory()->create<KParts::ReadOnlyPart>(this, this);
m_konsolePart = pluginFactory()->create<KParts::ReadOnlyPart>(this);
if (!m_konsolePart) {
return;
}
......
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