xp-sp3: change grammer to support Qt5.6.3 for xp with sp3 system.

This commit is contained in:
2025-06-25 10:54:04 +08:00
parent 1f9275ed72
commit 60f5cb62b1
26 changed files with 250 additions and 246 deletions

View File

@@ -63,7 +63,8 @@ void Server::onNewConnection()
client->socket = clientSocket;
client->socket->setProperty("clientId", clientId);
client->id = clientId;
client->connectTime = QDateTime::currentSecsSinceEpoch();
// client->connectTime = QDateTime::currentSecsSinceEpoch();
client->connectTime = QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000;
connect(clientSocket, &QTcpSocket::readyRead, this, &Server::onReadyRead);
connect(clientSocket, &QTcpSocket::disconnected, this, &Server::onClientDisconnected);
@@ -198,7 +199,8 @@ bool Server::sendData(QTcpSocket* socket, QSharedPointer<FrameBuffer> frame)
void Server::monitorClients()
{
qint64 now = QDateTime::currentSecsSinceEpoch();
// qint64 now = QDateTime::currentSecsSinceEpoch();
qint64 now = QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000;
QWriteLocker locker(&rwLock_);
for (auto it = clients_.begin(); it != clients_.end();) {