diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index d6b5642dc..5e1cdd708 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -22,8 +22,8 @@ K_PLUGIN_CLASS_WITH_JSON(KdeConnectKcm, "kcm_kdeconnect.json") -KdeConnectKcm::KdeConnectKcm(QObject *parent, const QVariantList &args) - : KCModule(qobject_cast(parent)) +KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const QVariantList &args) + : KCModule(parent, md) , daemon(new DaemonDbusInterface(this)) , devicesModel(new DevicesModel(this)) , currentDevice(nullptr) diff --git a/kcm/kcm.h b/kcm/kcm.h index 7716a8255..0fa2831a9 100644 --- a/kcm/kcm.h +++ b/kcm/kcm.h @@ -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: