Make it build with older Qt

This commit is contained in:
Michael Zanetti 2021-10-21 22:25:25 +02:00
parent affc04d250
commit 1852044ef1

View File

@ -29,7 +29,8 @@ void OwletClient::connectToHost(const QHostAddress &address, int port)
});
});
connect(m_socket, &QTcpSocket::errorOccurred, this, [this](){
typedef void (QTcpSocket:: *errorSignal)(QAbstractSocket::SocketError);
connect(m_socket, static_cast<errorSignal>(&QTcpSocket::error), this, [this](){
qCDebug(dcOwlet()) << "Error in owlet communication";
emit error();
});