From 835c1d9dd2f3136b8f622cd9c20178d81e7b6688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 21 Aug 2025 12:40:35 +0200 Subject: [PATCH] Update deprecated signals qt version handling --- .../hardware/network/upnp/upnpdiscoveryimplementation.cpp | 2 +- .../hardware/radio433/radio433brennenstuhlgateway.cpp | 2 +- libnymea-core/servers/webserver.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libnymea-core/hardware/network/upnp/upnpdiscoveryimplementation.cpp b/libnymea-core/hardware/network/upnp/upnpdiscoveryimplementation.cpp index 92a1cac8..6f4475b0 100644 --- a/libnymea-core/hardware/network/upnp/upnpdiscoveryimplementation.cpp +++ b/libnymea-core/hardware/network/upnp/upnpdiscoveryimplementation.cpp @@ -578,7 +578,7 @@ bool UpnpDiscoveryImplementation::enable() m_available = true; emit availableChanged(true); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect(m_socket, &QUdpSocket::errorOccurred, this, &UpnpDiscoveryImplementation::error); #else connect(m_socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError))); diff --git a/libnymea-core/hardware/radio433/radio433brennenstuhlgateway.cpp b/libnymea-core/hardware/radio433/radio433brennenstuhlgateway.cpp index 18e1c546..1d24a9bb 100644 --- a/libnymea-core/hardware/radio433/radio433brennenstuhlgateway.cpp +++ b/libnymea-core/hardware/radio433/radio433brennenstuhlgateway.cpp @@ -41,7 +41,7 @@ Radio433BrennenstuhlGateway::Radio433BrennenstuhlGateway(QObject *parent) : // UDP socket to sending data to gateway m_gateway = new QUdpSocket(this); connect(m_gateway, &QUdpSocket::readyRead, this, &Radio433BrennenstuhlGateway::readData); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect(m_gateway, &QUdpSocket::errorOccurred, this, &Radio433BrennenstuhlGateway::gatewayError); #else connect(m_gateway, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(gatewayError(QAbstractSocket::SocketError))); diff --git a/libnymea-core/servers/webserver.cpp b/libnymea-core/servers/webserver.cpp index 5782ff81..87f29159 100644 --- a/libnymea-core/servers/webserver.cpp +++ b/libnymea-core/servers/webserver.cpp @@ -278,7 +278,7 @@ void WebServer::incomingConnection(qintptr socketDescriptor) connect(socket, &QSslSocket::readyRead, this, &WebServer::readClient); connect(socket, &QSslSocket::disconnected, this, &WebServer::onDisconnected); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect(socket, &QSslSocket::errorOccurred, this, &WebServer::onError); #else connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(onError(QAbstractSocket::SocketError))); @@ -517,7 +517,7 @@ void WebServer::onEncrypted() connect(socket, &QSslSocket::readyRead, this, &WebServer::readClient); connect(socket, &QSslSocket::disconnected, this, &WebServer::onDisconnected); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect(socket, &QSslSocket::errorOccurred, this, &WebServer::onError); #else connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(onError(QAbstractSocket::SocketError)));