[kcm] Use correct KCModule constructor

BUG: 482199

CCBUG: 478091
(cherry picked from commit 1785160049)
This commit is contained in:
Nicolas Fella 2024-03-05 19:43:31 +01:00
parent cbb3fc3e24
commit c5934e3d9b
2 changed files with 3 additions and 3 deletions

View file

@ -22,8 +22,8 @@
K_PLUGIN_CLASS_WITH_JSON(KdeConnectKcm, "kcm_kdeconnect.json")
KdeConnectKcm::KdeConnectKcm(QObject *parent, const QVariantList &args)
: KCModule(qobject_cast<QWidget *>(parent))
KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const QVariantList &args)
: KCModule(parent, md)
, daemon(new DaemonDbusInterface(this))
, devicesModel(new DevicesModel(this))
, currentDevice(nullptr)

View file

@ -23,7 +23,7 @@ class KdeConnectKcm : public KCModule
{
Q_OBJECT
public:
KdeConnectKcm(QObject *parent, const QVariantList &);
KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const QVariantList &args);
~KdeConnectKcm() override;
private: