From aae93e0d8236724dcda1e6e8d657ccfce38b2af2 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 28 Sep 2020 12:18:44 +0100 Subject: [PATCH] Qt <5.7 compatibility --- Network/PSKReporter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Network/PSKReporter.cpp b/Network/PSKReporter.cpp index fcdebf2c5..8c8d7948d 100644 --- a/Network/PSKReporter.cpp +++ b/Network/PSKReporter.cpp @@ -145,8 +145,10 @@ public: #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect (socket_.get (), &QAbstractSocket::errorOccurred, this, &PSKReporter::impl::handle_socket_error); -#else +#elif QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) connect (socket_.data (), QOverload::of (&QAbstractSocket::error), this, &PSKReporter::impl::handle_socket_error); +#else + connect (socket_.data (), static_cast (&QAbstractSocket::error), this, &PSKReporter::impl::handle_socket_error); #endif // use this for pseudo connection with UDP, allows us to use