QtNetwork deprecations: suppress internal warnings

There're some uses we can't get rid of until the deprecated functions
are deleted, so suppress them for now.

Change-Id: I85b737eefc71f8f3ac939dfa961383220a8244af
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Mårten Nordheim 2020-03-12 10:47:21 +01:00
parent 6e32de256d
commit 28d3d82a0d
10 changed files with 27 additions and 4 deletions

View File

@ -37,6 +37,8 @@
**
****************************************************************************/
#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "qnetworkaccessmanager.h"
#include "qnetworkaccessmanager_p.h"
#include "qnetworkrequest.h"

View File

@ -92,7 +92,7 @@ public:
};
#ifndef QT_NO_BEARERMANAGEMENT // ### Qt6: Remove section
enum QT_DEPRECATED_VERSION_5_15 NetworkAccessibility {
enum QT_DEPRECATED_NETWORK_API_5_15 NetworkAccessibility {
UnknownAccessibility = -1,
NotAccessible = 0,
Accessible = 1

View File

@ -37,6 +37,8 @@
**
****************************************************************************/
#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "qnetworkreply.h"
#include "qnetworkreply_p.h"
#include <QtNetwork/qsslconfiguration.h>

View File

@ -157,7 +157,7 @@ Q_SIGNALS:
void metaDataChanged();
void finished();
#if QT_DEPRECATED_SINCE(5,15)
QT_DEPRECATED_X("Use QNetworkReply::errorOccurred(QNetworkReply::NetworkError) instead")
QT_DEPRECATED_NETWORK_API_5_15_X("Use QNetworkReply::errorOccurred(QNetworkReply::NetworkError) instead")
void error(QNetworkReply::NetworkError);
#endif
void errorOccurred(QNetworkReply::NetworkError);

View File

@ -64,6 +64,10 @@ QT_BEGIN_NAMESPACE
#define QT_DEPRECATED_BEARER_MANAGEMENT QT_DEPRECATED_VERSION_5_15
#endif
// ### Qt6: Remove
#define QT_DEPRECATED_NETWORK_API_5_15 QT_DEPRECATED_VERSION_5_15
#define QT_DEPRECATED_NETWORK_API_5_15_X QT_DEPRECATED_VERSION_X_5_15
QT_END_NAMESPACE
#endif

View File

@ -61,4 +61,15 @@
#endif
#define QT_DEPRECATED_BEARER_MANAGEMENT
// ### Qt6: Remove
#ifdef QT_DEPRECATED_NETWORK_API_5_15
#undef QT_DEPRECATED_NETWORK_API_5_15
#endif
#define QT_DEPRECATED_NETWORK_API_5_15
#ifdef QT_DEPRECATED_NETWORK_API_5_15_X
#undef QT_DEPRECATED_NETWORK_API_5_15_X
#endif
#define QT_DEPRECATED_NETWORK_API_5_15_X(x)
#endif // QTNETWORKGLOBAL_P_H

View File

@ -469,6 +469,8 @@
SSL error notification. I.E. QSslSocket::sslErrors().
*/
#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "qabstractsocket.h"
#include "qabstractsocket_p.h"

View File

@ -207,7 +207,7 @@ Q_SIGNALS:
void disconnected();
void stateChanged(QAbstractSocket::SocketState);
#if QT_DEPRECATED_SINCE(5,15)
QT_DEPRECATED_X("Use QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) instead")
QT_DEPRECATED_NETWORK_API_5_15_X("Use QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) instead")
void error(QAbstractSocket::SocketError);
#endif
void errorOccurred(QAbstractSocket::SocketError);

View File

@ -37,6 +37,8 @@
**
****************************************************************************/
#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "qlocalsocket.h"
#include "qlocalsocket_p.h"

View File

@ -118,7 +118,7 @@ Q_SIGNALS:
void connected();
void disconnected();
#if QT_DEPRECATED_SINCE(5,15)
QT_DEPRECATED_X("Use QLocalSocket::errorOccurred(QLocalSocket::LocalSocketError) instead")
QT_DEPRECATED_NETWORK_API_5_15_X("Use QLocalSocket::errorOccurred(QLocalSocket::LocalSocketError) instead")
void error(QLocalSocket::LocalSocketError socketError);
#endif
void errorOccurred(QLocalSocket::LocalSocketError socketError);