From 50cce43e927d47fb8e318dff0006c2a7a38100c3 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 3 Nov 2020 23:14:26 +0000 Subject: [PATCH] Pre Qt 5.14 compatibility --- UDPExamples/UDPDaemon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UDPExamples/UDPDaemon.cpp b/UDPExamples/UDPDaemon.cpp index 0f6793028..6d98b3a6b 100644 --- a/UDPExamples/UDPDaemon.cpp +++ b/UDPExamples/UDPDaemon.cpp @@ -169,7 +169,11 @@ public: connect (server_, &MessageServer::client_opened, this, &Server::add_client); connect (server_, &MessageServer::client_closed, this, &Server::remove_client); +#if QT_VERSION >= 0x051400 server_->start (port, multicast_group, QSet {network_interface_names.begin (), network_interface_names.end ()}); +#else + server_->start (port, multicast_group, network_interface_names.toSet ()); +#endif } private: