[kcm] Use correct KCModule constructor

BUG: 482199

CCBUG: 478091
This commit is contained in:
Nicolas Fella 2024-03-05 19:43:31 +01:00 committed by Albert Vaca Cintora
parent 58e9bf3161
commit 1785160049
2 changed files with 3 additions and 3 deletions

View file

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

View file

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