Commit 291bb92c authored by Laurent Montel's avatar Laurent Montel 😁

Start to use new connect api for it too

parent 8d519ce1
......@@ -202,11 +202,11 @@ void SubscriptionDialog::init(const QStringList &mimetypes)
QVBoxLayout *subscribeButtonLayout = new QVBoxLayout;
d->subscribe = new QPushButton(i18n("Subscribe"));
subscribeButtonLayout->addWidget(d->subscribe);
connect(d->subscribe, SIGNAL(clicked()), this, SLOT(slotSubscribe()));
connect(d->subscribe, &QPushButton::clicked, this, [this]() { d->slotSubscribe(); });
d->unSubscribe = new QPushButton(i18n("Unsubscribe"));
subscribeButtonLayout->addWidget(d->unSubscribe);
connect(d->unSubscribe, SIGNAL(clicked()), this, SLOT(slotUnSubscribe()));
connect(d->unSubscribe, &QPushButton::clicked, this, [this]() { d->slotUnSubscribe(); });
subscribeButtonLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Minimum, QSizePolicy::Expanding));
hboxLayout->addLayout(subscribeButtonLayout);
......@@ -223,7 +223,7 @@ void SubscriptionDialog::init(const QStringList &mimetypes)
mainLayout->addWidget(buttonBox);
connect(d->model, SIGNAL(loaded()), SLOT(modelLoaded()));
connect(d->mOkButton, SIGNAL(clicked(bool)), this, SLOT(done()));
connect(d->mOkButton, &QPushButton::clicked, this, [this] () { d->done(); });
connect(buttonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &SubscriptionDialog::deleteLater);
ControlGui::widgetNeedsAkonadi(mainWidget);
d->readConfig();
......
......@@ -71,13 +71,10 @@ private:
void init(const QStringList &mimetypes);
Q_PRIVATE_SLOT(d, void done())
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))
Q_PRIVATE_SLOT(d, void slotUnSubscribe())
Q_PRIVATE_SLOT(d, void slotSubscribe())
};
}
......
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