made it work with Qt 5.6

This commit is contained in:
nymea 2019-09-15 11:04:14 +02:00
parent 330f9e2332
commit 048ec55250

View File

@ -31,7 +31,7 @@ void TcpSocket::connectionTest()
emit connectionTestFinished(true);
testSocket->deleteLater();
});
connect(testSocket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, [this, testSocket] {
connect(testSocket, static_cast<void (QTcpSocket::*) (QAbstractSocket::SocketError)>(&QTcpSocket::error), this, [this, testSocket] {
emit connectionTestFinished(false);
testSocket->deleteLater();
});