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:
parent
6e32de256d
commit
28d3d82a0d
@ -37,6 +37,8 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
|
||||
#include "qnetworkaccessmanager.h"
|
||||
#include "qnetworkaccessmanager_p.h"
|
||||
#include "qnetworkrequest.h"
|
||||
|
@ -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
|
||||
|
@ -37,6 +37,8 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
|
||||
#include "qnetworkreply.h"
|
||||
#include "qnetworkreply_p.h"
|
||||
#include <QtNetwork/qsslconfiguration.h>
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -469,6 +469,8 @@
|
||||
SSL error notification. I.E. QSslSocket::sslErrors().
|
||||
*/
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
|
||||
#include "qabstractsocket.h"
|
||||
#include "qabstractsocket_p.h"
|
||||
|
||||
|
@ -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);
|
||||
|
@ -37,6 +37,8 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
|
||||
#include "qlocalsocket.h"
|
||||
#include "qlocalsocket_p.h"
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user