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:
parent
d376a4e578
commit
cf22e8ea4e
@ -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
|
||||
|
@ -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
|
||||
|
@ -46,8 +46,6 @@
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
Q_DECLARE_METATYPE ( QModelIndex )
|
||||
|
||||
/*!
|
||||
Connect to all of the models signals. Whenever anything happens recheck everything.
|
||||
*/
|
||||
|
@ -56,7 +56,6 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
Q_DECLARE_METATYPE(QRect)
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QPrinter)
|
||||
|
||||
|
@ -50,7 +50,6 @@
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
Q_DECLARE_METATYPE(QRect)
|
||||
|
||||
class tst_QPrinterInfo : public QObject
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -166,7 +166,6 @@ void tst_Cmptest::compare_pointerfuncs()
|
||||
QCOMPARE(&i, intptr());
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(QVariant)
|
||||
|
||||
struct PhonyClass
|
||||
{
|
||||
|
@ -143,7 +143,6 @@ private:
|
||||
QList<QByteArray> m_testCodecs;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(QList<QVariant>)
|
||||
|
||||
void tst_QDom::setContent_data()
|
||||
{
|
||||
|
@ -74,7 +74,6 @@ typedef int SOCKET;
|
||||
# include <winsock2.h>
|
||||
#endif
|
||||
|
||||
Q_DECLARE_METATYPE(QVector<QUrl>)
|
||||
|
||||
class tst_NetworkRemoteStressTest : public QObject
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user