Use simpler K_PLUGIN_CLASS macro for KCMs

This commit is contained in:
Alexander Lohnau 2023-07-21 13:42:38 +03:00 committed by Albert Vaca Cintora
parent ede9e37b40
commit f483c1449c
7 changed files with 7 additions and 7 deletions

View file

@ -9,7 +9,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY(ClipboardConfigFactory, registerPlugin<ClipboardConfig>();)
K_PLUGIN_CLASS(ClipboardConfig)
ClipboardConfig::ClipboardConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KdeConnectPluginKcm(parent, data, args)

View file

@ -19,7 +19,7 @@
#include <QAudioOutput>
#endif
K_PLUGIN_FACTORY(FindThisDeviceConfigFactory, registerPlugin<FindThisDeviceConfig>();)
K_PLUGIN_CLASS(FindThisDeviceConfig)
FindThisDeviceConfig::FindThisDeviceConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KdeConnectPluginKcm(parent, data, args)

View file

@ -9,7 +9,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY(PauseMusicConfigFactory, registerPlugin<PauseMusicConfig>();)
K_PLUGIN_CLASS(PauseMusicConfig)
PauseMusicConfig::PauseMusicConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KdeConnectPluginKcm(parent, data, args)

View file

@ -24,7 +24,7 @@
#include <dbushelper.h>
K_PLUGIN_FACTORY(ShareConfigFactory, registerPlugin<RunCommandConfig>();)
K_PLUGIN_CLASS(RunCommandConfig)
RunCommandConfig::RunCommandConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KdeConnectPluginKcm(parent, data, args)

View file

@ -11,7 +11,7 @@
#include <KCModule>
#include <KPluginFactory>
K_PLUGIN_FACTORY(SendNotificationsConfigFactory, registerPlugin<SendNotificationsConfig>();)
K_PLUGIN_CLASS(SendNotificationsConfig)
SendNotificationsConfig::SendNotificationsConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KdeConnectPluginKcm(parent, data, args)

View file

@ -12,7 +12,7 @@
#include <KPluginFactory>
#include <KUrlRequester>
K_PLUGIN_FACTORY(ShareConfigFactory, registerPlugin<ShareConfig>();)
K_PLUGIN_CLASS(ShareConfig)
ShareConfig::ShareConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KdeConnectPluginKcm(parent, data, args)

View file

@ -14,7 +14,7 @@
#include <QJsonDocument>
#include <QJsonObject>
K_PLUGIN_FACTORY_WITH_JSON(KdeConnectPluginFactory, "kdeconnect_systemvolume.json", registerPlugin<SystemvolumePlugin>();)
K_PLUGIN_CLASS_WITH_JSON(SystemvolumePlugin, "kdeconnect_systemvolume.json")
class MacOSCoreAudioDevice
{