Instead of in multiple different TUs, therefore causing ODR violations.
Change-Id: I08d3624d3ed5a995e96488361665afa197fb9fc9
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Q_DECLARE_METATYPE(QList<bool>)
Q_DECLARE_METATYPE(QList<QString>)
Q_DECLARE_METATYPE(QList<QUrl>)
-Q_DECLARE_METATYPE(QJSValue)
QT_BEGIN_NAMESPACE
#include <math.h>
-Q_DECLARE_METATYPE(QJSValue)
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<qreal>)
Q_DECLARE_METATYPE(QList<bool>)
# pragma warning( disable : 4200 )
#endif
-Q_DECLARE_METATYPE(QJSValue)
-
QT_BEGIN_NAMESPACE
#define Q_INT16_MAX 32767
#include <private/qv8variantresource_p.h>
#include <private/qqmlglobal_p.h>
-Q_DECLARE_METATYPE(QJSValue);
-
QT_BEGIN_NAMESPACE
QQmlVMEVariantQObjectPtr::QQmlVMEVariantQObjectPtr(bool isVar)
#include <QtCore/qmath.h>
#include <math.h> // ::fmod
-Q_DECLARE_METATYPE(QJSValue)
-
#ifdef Q_CC_MSVC
// MSVC2010 warns about 'unreferenced formal parameter', even if it's used in p->~T()
# pragma warning( disable : 4100 )
#include <private/qqmlaccessors_p.h>
#include <private/qqmljsengine_p.h>
-Q_DECLARE_METATYPE(QJSValue)
-
QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(bindingsDump, QML_BINDINGS_DUMP)
DEFINE_BOOL_CONFIG_OPTION(qmlVerboseCompiler, QML_VERBOSE_COMPILER)
-Q_DECLARE_METATYPE(QJSValue)
-
QT_BEGIN_NAMESPACE
using namespace QQmlJS;
#define Q_D(blah)
#define Q_Q(blah)
-Q_DECLARE_METATYPE(QJSValue)
Q_DECLARE_METATYPE(QObjectList)
Q_DECLARE_METATYPE(QList<int>)
QT_END_NAMESPACE
+Q_DECLARE_METATYPE(QJSValue)
+
QT_END_HEADER
#endif
#include <QtCore/qjsonobject.h>
#include <QtCore/qjsonvalue.h>
-Q_DECLARE_METATYPE(QJSValue)
Q_DECLARE_METATYPE(QList<int>)
#include <QtCore/qtimer.h>
#include <QtCore/qatomic.h>
-Q_DECLARE_METATYPE(QJSValue);
-
QT_BEGIN_NAMESPACE
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
#include <QtTest/QtTest>
Q_DECLARE_METATYPE(QVariant)
-Q_DECLARE_METATYPE(QJSValue)
class tst_QJSValue : public QObject
{
#include <QJSValue>
#include <QJSValueIterator>
-Q_DECLARE_METATYPE(QJSValue);
-
class tst_QJSValueIterator : public QObject
{
Q_OBJECT
}
};
-Q_DECLARE_METATYPE(QJSValue);
class MyInvokableBaseObject : public QObject
{
Q_OBJECT
int id;
};
-Q_DECLARE_METATYPE(QJSValue)
-
QT_BEGIN_NAMESPACE
#define MyInterface_iid "org.qt-project.Qt.Test.MyInterface"
Q_DECLARE_INTERFACE(MyInterface, MyInterface_iid);
#include <QtQml/qjsvalue.h>
#include <QtQml/qjsengine.h>
-
-Q_DECLARE_METATYPE(QJSValue)
-
class tst_QJSEngine : public QObject
{
Q_OBJECT
#include <QtQml/qjsvalue.h>
#include <QtQml/qjsengine.h>
-Q_DECLARE_METATYPE(QJSValue)
-
class tst_QJSValue : public QObject
{
Q_OBJECT