mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 17:54:12 +02:00
Merge pull request #1303 from daleglass/qt5-fix-qtcpsocket-error
Replace deprecated QAbstractsocket::error with QAbstractSocket::error…
This commit is contained in:
commit
45e10f0670
2 changed files with 4 additions and 5 deletions
|
@ -124,9 +124,9 @@ HTTPConnection::HTTPConnection(QTcpSocket* socket, HTTPManager* parentManager) :
|
||||||
_socket->setParent(this);
|
_socket->setParent(this);
|
||||||
|
|
||||||
// connect initial slots
|
// connect initial slots
|
||||||
connect(socket, SIGNAL(readyRead()), SLOT(readRequest()));
|
connect(socket, &QAbstractSocket::readyRead, this, &HTTPConnection::readRequest);
|
||||||
connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), SLOT(deleteLater()));
|
connect(socket, &QAbstractSocket::errorOccurred, this, &HTTPConnection::deleteLater);
|
||||||
connect(socket, SIGNAL(disconnected()), SLOT(deleteLater()));
|
connect(socket, &QAbstractSocket::disconnected, this, &HTTPConnection::deleteLater);
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTPConnection::~HTTPConnection() {
|
HTTPConnection::~HTTPConnection() {
|
||||||
|
|
|
@ -1224,8 +1224,7 @@ void LimitedNodeList::updateLocalSocket() {
|
||||||
QTcpSocket* localIPTestSocket = new QTcpSocket;
|
QTcpSocket* localIPTestSocket = new QTcpSocket;
|
||||||
|
|
||||||
connect(localIPTestSocket, &QTcpSocket::connected, this, &LimitedNodeList::connectedForLocalSocketTest);
|
connect(localIPTestSocket, &QTcpSocket::connected, this, &LimitedNodeList::connectedForLocalSocketTest);
|
||||||
connect(localIPTestSocket, static_cast<void(QTcpSocket::*)(QAbstractSocket::SocketError)>(&QTcpSocket::error),
|
connect(localIPTestSocket, &QTcpSocket::errorOccurred, this, &LimitedNodeList::errorTestingLocalSocket);
|
||||||
this, &LimitedNodeList::errorTestingLocalSocket);
|
|
||||||
|
|
||||||
// attempt to connect to our reliable host
|
// attempt to connect to our reliable host
|
||||||
localIPTestSocket->connectToHost(RELIABLE_LOCAL_IP_CHECK_HOST, RELIABLE_LOCAL_IP_CHECK_PORT);
|
localIPTestSocket->connectToHost(RELIABLE_LOCAL_IP_CHECK_HOST, RELIABLE_LOCAL_IP_CHECK_PORT);
|
||||||
|
|
Loading…
Reference in a new issue