]> Some of my projects - anidbudpclient.git/commitdiff
Cleanup old Qt version checks
authorAPTX <redacted>
Tue, 3 Mar 2026 00:35:34 +0000 (09:35 +0900)
committerAPTX <redacted>
Sat, 7 Mar 2026 02:49:18 +0000 (11:49 +0900)
anidbudpclient_global.h
client.cpp

index 61e3d18451597f50b2362532a8ec47b2e5c80777..d1a99dc4ba3545de312eb82c0736b042feb3a2c7 100644 (file)
@@ -469,8 +469,4 @@ Q_DECLARE_METATYPE(AniDBUdpClient::ReplyCode);
 Q_DECLARE_METATYPE(AniDBUdpClient::State);
 Q_DECLARE_METATYPE(AniDBUdpClient::FileState);
 
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-Q_DECLARE_METATYPE(QFileInfo);
-#endif
-
 #endif // ANIDBUDPCLIENT_GLOBAL_H
index f33658de8545c47c34d4d2c1f38a40135adc85db..2c41465f6b21ed4469e66125af46e9d502d0c0f1 100644 (file)
@@ -295,11 +295,7 @@ qDebug() << "Entering Connecting State";
        qDebug() << "Host address is:" << m_hostAddress;
        if (!m_hostAddress.isNull())
        {
-#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
                if (socket->bind(QHostAddress::AnyIPv4, m_localPort))
-#else
-               if (socket->bind(QHostAddress::Any, m_localPort))
-#endif
                {
 #ifdef ANIDBUDPCLIENT_CLIENT_MISC_DEBUG
 qDebug() << "Successful connection";