Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 97b233c0 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 9f4be708
......@@ -448,7 +448,7 @@ void AgentBasePrivate::init()
mResourceTypeName = AgentManager::self()->instance(mId).type().name();
setProgramName();
QTimer::singleShot(0, q, SLOT(delayedInit()));
QTimer::singleShot(0, q, [this]{ delayedInit();});
}
void AgentBasePrivate::delayedInit()
......
......@@ -78,7 +78,7 @@ void Session::connectToHost()
}
QLocalSocket *socket = new QLocalSocket(this);
connect(socket, SIGNAL(error(QLocalSocket::LocalSocketError)), SLOT(serverError(QLocalSocket::LocalSocketError)));
connect(socket, QOverload<QLocalSocket::LocalSocketError>::of(&QLocalSocket::error), this, &Session::serverError);
connect(socket, &QLocalSocket::disconnected, this, &Session::serverDisconnected);
connect(socket, &QIODevice::readyRead, this, &Session::serverRead);
connect(socket, &QLocalSocket::connected, this, &Session::inputAvailable);
......
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