2016-08-28 01:33:18 +00:00
|
|
|
#ifndef QDECLARATIVECOMMON_P_H
|
|
|
|
#define QDECLARATIVECOMMON_P_H
|
|
|
|
|
|
|
|
#include "qobject.h"
|
|
|
|
#include "qdeclarativeglobal_p.h"
|
|
|
|
#include "qdeclarative.h"
|
|
|
|
#include "qlistmodelinterface_p.h"
|
|
|
|
#include "qscriptvalue.h"
|
|
|
|
|
2017-04-26 06:28:30 +00:00
|
|
|
Q_DECLARE_METATYPE(QScriptValue)
|
|
|
|
QML_DECLARE_TYPE(QListModelInterface)
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
2016-08-28 01:33:18 +00:00
|
|
|
struct StaticQtMetaObject : public QObject
|
|
|
|
{
|
|
|
|
static const QMetaObject *get()
|
|
|
|
{ return &static_cast<StaticQtMetaObject*> (0)->staticQtMetaObject; }
|
|
|
|
};
|
|
|
|
|
2019-06-02 12:02:13 +00:00
|
|
|
inline static int QMetaObject_methods(const QMetaObject *metaObject)
|
2016-08-28 01:33:18 +00:00
|
|
|
{
|
|
|
|
struct Private
|
|
|
|
{
|
|
|
|
int revision;
|
|
|
|
int className;
|
|
|
|
int classInfoCount, classInfoData;
|
|
|
|
int methodCount, methodData;
|
|
|
|
int propertyCount, propertyData;
|
|
|
|
};
|
|
|
|
|
|
|
|
return reinterpret_cast<const Private *>(metaObject->d.data)->methodCount;
|
|
|
|
}
|
|
|
|
|
2019-06-02 12:02:13 +00:00
|
|
|
inline static int qRoundDouble(const double d)
|
2016-08-28 01:33:18 +00:00
|
|
|
{
|
|
|
|
return d >= double(0.0) ? int(d + double(0.5)) : int(d - int(d-1) + double(0.5)) + int(d-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG)
|
|
|
|
DEFINE_BOOL_CONFIG_OPTION(bindingsDump, QML_BINDINGS_DUMP)
|
|
|
|
|
2017-04-26 06:28:30 +00:00
|
|
|
QT_END_NAMESPACE
|
2016-08-28 01:33:18 +00:00
|
|
|
|
|
|
|
#endif // QDECLARATIVECOMMON_P_H
|