Tests: 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: Ifd116dee32a450ff89a9a1011e26b434765d6e95
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Stephen Kelly 2013-01-03 17:55:57 +01:00 committed by The Qt Project
parent d376a4e578
commit cf22e8ea4e
9 changed files with 0 additions and 16 deletions

View File

@ -49,13 +49,6 @@
#include "functions.h"
Q_DECLARE_METATYPE(QVector<int>);
Q_DECLARE_METATYPE(QVector<double>);
Q_DECLARE_METATYPE(QVector<QString>);
Q_DECLARE_METATYPE(QList<int>);
Q_DECLARE_METATYPE(QList<double>);
Q_DECLARE_METATYPE(QList<QString>);
class tst_QtConcurrentMap: public QObject
{
Q_OBJECT

View File

@ -56,7 +56,6 @@
# include <windows.h>
# endif
Q_DECLARE_METATYPE(QList<QProcess::ExitStatus>);
Q_DECLARE_METATYPE(QProcess::ExitStatus);
Q_DECLARE_METATYPE(QProcess::ProcessState);
#endif

View File

@ -46,8 +46,6 @@
#include <QtTest/QtTest>
Q_DECLARE_METATYPE ( QModelIndex )
/*!
Connect to all of the models signals. Whenever anything happens recheck everything.
*/

View File

@ -56,7 +56,6 @@
#include <windows.h>
#endif
Q_DECLARE_METATYPE(QRect)
QT_FORWARD_DECLARE_CLASS(QPrinter)

View File

@ -50,7 +50,6 @@
# include <sys/wait.h>
#endif
Q_DECLARE_METATYPE(QRect)
class tst_QPrinterInfo : public QObject
{

View File

@ -49,7 +49,6 @@ const QString test(qTableName("test", __FILE__)),
test2(qTableName("test2", __FILE__)),
test3(qTableName("test3", __FILE__));
Q_DECLARE_METATYPE(QModelIndex)
class tst_QSqlTableModel : public QObject
{

View File

@ -166,7 +166,6 @@ void tst_Cmptest::compare_pointerfuncs()
QCOMPARE(&i, intptr());
}
Q_DECLARE_METATYPE(QVariant)
struct PhonyClass
{

View File

@ -143,7 +143,6 @@ private:
QList<QByteArray> m_testCodecs;
};
Q_DECLARE_METATYPE(QList<QVariant>)
void tst_QDom::setContent_data()
{

View File

@ -74,7 +74,6 @@ typedef int SOCKET;
# include <winsock2.h>
#endif
Q_DECLARE_METATYPE(QVector<QUrl>)
class tst_NetworkRemoteStressTest : public QObject
{