[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") 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: