Network: Remove declaration of built-in and automatic metatypes.

These types are either built-in or 'automatically declared' and so
don't need to be explicitly declared as metatypes.

Change-Id: Ifdce72af844901665c4ebab11507216ba5f00fc1
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
Stephen Kelly 2013-01-03 10:44:24 +01:00 committed by The Qt Project
parent 00b0dff93f
commit 330ad41b7d
4 changed files with 0 additions and 11 deletions

View File

@ -92,12 +92,8 @@ Q_DECLARE_METATYPE(QSharedPointer<char>)
#include "../../../network-settings.h"
Q_DECLARE_METATYPE(QNetworkReply*)
Q_DECLARE_METATYPE(QAuthenticator*)
Q_DECLARE_METATYPE(QNetworkProxyQuery)
Q_DECLARE_METATYPE(QBuffer*)
Q_DECLARE_METATYPE(QHttpMultiPart *)
Q_DECLARE_METATYPE(QList<QFile*>) // for multiparts
typedef QSharedPointer<QNetworkReply> QNetworkReplyPtr;

View File

@ -45,9 +45,7 @@
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkCookie>
Q_DECLARE_METATYPE(QList<QByteArray>)
Q_DECLARE_METATYPE(QNetworkRequest::KnownHeaders)
Q_DECLARE_METATYPE(QVariant)
class tst_QNetworkRequest: public QObject
{

View File

@ -61,8 +61,6 @@
#include "../../../network-settings.h"
Q_DECLARE_METATYPE(QQueue<QByteArray>)
class tst_QSocks5SocketEngine : public QObject, public QAbstractSocketEngineReceiver
{
Q_OBJECT

View File

@ -63,9 +63,6 @@
Q_DECLARE_METATYPE(QHostAddress)
Q_DECLARE_METATYPE(QNetworkInterface)
#ifndef QT_NO_BEARERMANAGEMENT
Q_DECLARE_METATYPE(QSharedPointer<QNetworkSession>)
#endif
QT_FORWARD_DECLARE_CLASS(QUdpSocket)