summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-04-30 21:08:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-05-26 18:41:21 +0200
commit0f80de3f115f1eba42917d2d7e7d1e645b022c4d (patch)
tree76c5cfbcb4aa8d15a9ef8d4cd871877b4258fe03
parente38036524fdb050fcc6739d69360acf5805762ce (diff)
Fix client compilation on <Qt-5.15.
-rw-r--r--src/client.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index 91f16d3..1a7401d 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -9,7 +9,11 @@ Client::Client(QObject *parent)
: QObject(parent)
{
socket = new QTcpSocket(this);
+#if QT_VERSION > QT_VERSION_CHECK(5, 15, 0)
connect(socket, &QTcpSocket::errorOccurred,
+#else
+ connect(socket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error),
+#endif
this, &Client::errorOccurred);
connect(socket, &QTcpSocket::connected,
this, &Client::connected);