From 1852044ef13ff784eaccd6ec04d433b7f54d6abb Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 21 Oct 2021 22:25:25 +0200 Subject: [PATCH] Make it build with older Qt --- owlet/owletclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/owlet/owletclient.cpp b/owlet/owletclient.cpp index cefd9494..c9ed5e7c 100644 --- a/owlet/owletclient.cpp +++ b/owlet/owletclient.cpp @@ -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(&QTcpSocket::error), this, [this](){ qCDebug(dcOwlet()) << "Error in owlet communication"; emit error(); });