Use function-pointer based signal-slot connection

This commit is contained in:
Chocobo1
2020-12-19 16:03:54 +08:00
parent e8b5508463
commit e6cf186c23
2 changed files with 9 additions and 9 deletions

View File

@@ -152,7 +152,7 @@ bool QtLocalPeer::isClient()
#endif
if (!res)
qWarning("QtSingleCoreApplication: listen on local socket failed, %s", qPrintable(server->errorString()));
QObject::connect(server, SIGNAL(newConnection()), SLOT(receiveConnection()));
connect(server, &QLocalServer::newConnection, this, &QtLocalPeer::receiveConnection);
return false;
}