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

Port to new connect api

parent a75bbd1f
......@@ -191,8 +191,8 @@ void LdapClientSearch::Private::readConfig()
q, SLOT(slotLDAPResult(KLDAP::LdapClient,KLDAP::LdapObject)));
q->connect(ldapClient, &LdapClient::done,
q, [this]() { slotLDAPDone(); });
q->connect(ldapClient, SIGNAL(error(QString)),
q, SLOT(slotLDAPError(QString)));
q->connect(ldapClient, QOverload<const QString &>::of(&LdapClient::error),
q, [this](const QString &str) { slotLDAPError(str);});
mClients.append(ldapClient);
}
......
......@@ -173,7 +173,6 @@ private:
Private *const d;
Q_PRIVATE_SLOT(d, void slotLDAPResult(const KLDAP::LdapClient &, const KLDAP::LdapObject &))
Q_PRIVATE_SLOT(d, void slotLDAPError(const QString &))
//@endcond
};
}
......
......@@ -134,8 +134,8 @@ void AddresseeLineEditPrivate::init()
this, SLOT(slotReturnPressed(QString)));
KCompletionBox *box = q->completionBox();
connect(box, SIGNAL(activated(QString)),
this, SLOT(slotPopupCompletion(QString)));
connect(box, QOverload<const QString &>::of(&KCompletionBox::activated),
this, &AddresseeLineEditPrivate::slotPopupCompletion);
connect(box, &KCompletionBox::userCancelled,
this, &AddresseeLineEditPrivate::slotUserCancelled);
connect(AddresseeLineEditManager::self()->ldapTimer(), &QTimer::timeout, this, &AddresseeLineEditPrivate::slotStartLDAPLookup);
......
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