Commit 220239d5 authored by Renaud Guezennec's avatar Renaud Guezennec

make rolisteam compilable under qt5.9

parent afc9c853
......@@ -529,7 +529,7 @@ void ServerManager::accept(qintptr handle, TcpClient* connection, QThread* threa
connection->setSocketHandleId(handle);
// emit clientAccepted();
QMetaObject::invokeMethod(connection, &TcpClient::startReading, Qt::QueuedConnection);
QMetaObject::invokeMethod(connection, SLOT(startReading()), Qt::QueuedConnection);
}
void ServerManager::sendOffModelToAll()
......@@ -595,7 +595,7 @@ void ServerManager::close()
auto clients= m_connections.values();
std::for_each(clients.begin(), clients.end(), [](TcpClient* client) {
// removeClient(client);
QMetaObject::invokeMethod(client, &TcpClient::closeConnection, Qt::QueuedConnection);
QMetaObject::invokeMethod(client, SLOT(closeConnection()), Qt::QueuedConnection);
});
emit closed();
}
......
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