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

Port to new connect api

parent 4781719a
......@@ -91,8 +91,8 @@ KParts::ReadOnlyPart *Core::createPart(const char *libname)
if (part) {
d->mParts.insert(libname, part);
QObject::connect(part, SIGNAL(destroyed(QObject*)),
SLOT(slotPartDestroyed(QObject*)));
QObject::connect(part, &KParts::ReadOnlyPart::destroyed,
this, [this](QObject* obj) { d->slotPartDestroyed(obj);});
} else {
d->lastErrorMessage = loader.errorString();
qCWarning(KONTACTINTERFACE_LOG) << d->lastErrorMessage;
......
......@@ -111,8 +111,6 @@ private:
//@cond PRIVATE
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void slotPartDestroyed(QObject *))
//@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