Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 57670d37 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 2605e411
......@@ -187,13 +187,11 @@ void SubscriptionDialog::init(const QStringList &mimetypes)
mainLayout->addWidget(lineEdit);
lineEdit->setClearButtonEnabled(true);
lineEdit->setFocus();
connect(lineEdit, SIGNAL(textChanged(QString)),
this, SLOT(slotSetPattern(QString)));
connect(lineEdit, &QLineEdit::textChanged, this, [this](const QString &str) { d->slotSetPattern(str); });
filterBarLayout->addWidget(lineEdit);
QCheckBox *checkBox = new QCheckBox(i18n("Subscribed only"), mainWidget);
mainLayout->addWidget(checkBox);
connect(checkBox, SIGNAL(clicked(bool)),
this, SLOT(slotSetIncludeCheckedOnly(bool)));
connect(checkBox, &QCheckBox::clicked, this, [this](bool state) { d->slotSetIncludeCheckedOnly(state); });
filterBarLayout->addWidget(checkBox);
QHBoxLayout *hboxLayout = new QHBoxLayout;
......
......@@ -71,10 +71,7 @@ private:
void init(const QStringList &mimetypes);
Q_PRIVATE_SLOT(d, void subscriptionResult(KJob *job))
Q_PRIVATE_SLOT(d, void modelLoaded())
Q_PRIVATE_SLOT(d, void slotSetPattern(const QString &))
Q_PRIVATE_SLOT(d, void slotSetIncludeCheckedOnly(bool))
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment