From e4bbab47ba30566f04b6a524402f6b2028975a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Tue, 16 Apr 2024 03:10:51 +0300 Subject: [PATCH] Declare KCModule constructor compatible with Kf6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Bidar --- config.cpp | 5 +++-- config.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.cpp b/config.cpp index ab66d31..3271c32 100644 --- a/config.cpp +++ b/config.cpp @@ -127,10 +127,11 @@ void PassConfigForm::validateAddButton() this->lineRegEx->text().isEmpty()); } -PassConfig::PassConfig(QWidget *parent, const QVariantList &args) +PassConfig::PassConfig(QWidget *parent, const KPluginMetaData &data, const QVariantList &args) : - KCModule(parent, args) + KCModule(parent, data) { + Q_UNUSED(args) this->ui = new PassConfigForm(this); QGridLayout *layout = new QGridLayout(this); layout->addWidget(ui, 0, 0); diff --git a/config.h b/config.h index 474c7cd..be8bdde 100644 --- a/config.h +++ b/config.h @@ -87,7 +87,9 @@ class PassConfig : public KCModule Q_OBJECT public: - explicit PassConfig(QWidget* parent = nullptr, const QVariantList& args = QVariantList()); + explicit PassConfig(QWidget *parent = nullptr, + const KPluginMetaData &data = {}, + const QVariantList &args = QVariantList()); public Q_SLOTS: void save() override;