Commit a4cff57f authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent fc406d1d
......@@ -669,8 +669,8 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
d->user1Button->setText(i18n("Add Selected"));
user2Button->setText(i18n("Configure LDAP Servers..."));
connect(d->mRecursiveCheckbox, SIGNAL(toggled(bool)),
this, SLOT(slotSetScope(bool)));
connect(d->mRecursiveCheckbox, &QCheckBox::toggled,
this, [this](bool state) { d->slotSetScope(state); });
connect(d->mSearchButton, SIGNAL(clicked()),
this, SLOT(slotStartSearch()));
......@@ -756,7 +756,7 @@ void LdapSearchDialog::Private::restoreSettings()
q->connect(ldapClient, SIGNAL(result(KLDAP::LdapClient,KLDAP::LdapObject)), q, SLOT(slotAddResult(KLDAP::LdapClient,KLDAP::LdapObject)));
q->connect(ldapClient, SIGNAL(done()), q, SLOT(slotSearchDone()));
q->connect(ldapClient, SIGNAL(error(QString)), q, SLOT(slotError(QString)));
q->connect(ldapClient, &LdapClient::error, q, [this](const QString &err) {slotError(err);});
mLdapClientList.append(ldapClient);
}
......
......@@ -101,11 +101,9 @@ private:
Private *const d;
Q_PRIVATE_SLOT(d, void slotAddResult(const KLDAP::LdapClient &, const KLDAP::LdapObject &))
Q_PRIVATE_SLOT(d, void slotSetScope(bool))
Q_PRIVATE_SLOT(d, void slotStartSearch())
Q_PRIVATE_SLOT(d, void slotStopSearch())
Q_PRIVATE_SLOT(d, void slotSearchDone())
Q_PRIVATE_SLOT(d, void slotError(const QString &))
//@endcond
};
}
......
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