Update deprecated signals qt version handling

This commit is contained in:
Simon Stürz 2025-08-21 12:40:35 +02:00
parent d58c5a6cf7
commit 835c1d9dd2
3 changed files with 4 additions and 4 deletions

View File

@ -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)));

View File

@ -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)));

View File

@ -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)));