Commit f25efb36 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Simplify code using K_PLUGIN_CLASS_WITH_JSON

This way we do not need to explicitly specify the factory name.
parent c95ac821
Pipeline #121279 passed with stage
in 49 seconds
......@@ -8,7 +8,7 @@
#include <KLocalizedString>
K_PLUGIN_FACTORY_WITH_JSON(KrdcFactory, "krdc_konsole.json", registerPlugin<KonsoleViewFactory>();)
K_PLUGIN_CLASS_WITH_JSON(KonsoleViewFactory, "krdc_konsole.json")
KonsoleViewFactory::KonsoleViewFactory(QObject *parent, const QVariantList &args)
: RemoteViewFactory(parent)
......
......@@ -10,7 +10,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(KrdcFactory, "krdc_rdp.json", registerPlugin<RdpViewFactory>();)
K_PLUGIN_CLASS_WITH_JSON(RdpViewFactory, "krdc_rdp.json")
RdpViewFactory::RdpViewFactory(QObject *parent, const QVariantList &args)
: RemoteViewFactory(parent)
......
......@@ -8,7 +8,7 @@
#include <KLocalizedString>
K_PLUGIN_FACTORY_WITH_JSON(KrdcFactory, "krdc_test.json", registerPlugin<TestViewFactory>();)
K_PLUGIN_CLASS_WITH_JSON(TestViewFactory, "krdc_test.json")
TestViewFactory::TestViewFactory(QObject *parent, const QVariantList &args)
: RemoteViewFactory(parent)
......
......@@ -9,7 +9,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(KrdcFactory, "krdc_vnc.json", registerPlugin<VncViewFactory>();)
K_PLUGIN_CLASS_WITH_JSON(VncViewFactory, "krdc_vnc.json")
VncViewFactory::VncViewFactory(QObject *parent, const QVariantList &args)
: RemoteViewFactory(parent)
......
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