Commit 1d89480e authored by Laurent Montel's avatar Laurent Montel 😁

Use new connect api

parent 83655eea
......@@ -161,7 +161,7 @@ KParts::ReadOnlyPart *Plugin::part()
if (!d->part) {
d->part = createPart();
if (d->part) {
connect(d->part, SIGNAL(destroyed()), SLOT(partDestroyed()));
connect(d->part, &KParts::ReadOnlyPart::destroyed, this, [this]() { d->partDestroyed(); });
d->removeInvisibleToolbarActions(this);
core()->partLoaded(this, d->part);
}
......
......@@ -329,8 +329,6 @@ private:
//@cond PRIVATE
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void partDestroyed())
//@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