Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmltypewrapper.cpp File Reference
#include "qqmltypewrapper_p.h"
#include <private/qqmlengine_p.h>
#include <private/qqmlcontext_p.h>
#include <private/qqmlmetaobject_p.h>
#include <private/qqmltypedata_p.h>
#include <private/qqmlvaluetypewrapper_p.h>
#include <private/qjsvalue_p.h>
#include <private/qv4functionobject_p.h>
#include <private/qv4objectproto_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <private/qv4identifiertable_p.h>
#include <private/qv4lookup_p.h>
+ Include dependency graph for qqmltypewrapper.cpp:

Go to the source code of this file.

Functions

 DEFINE_OBJECT_VTABLE (QQmlTypeWrapper)
 
 DEFINE_OBJECT_VTABLE (QQmlScopedEnumWrapper)
 
static int enumForSingleton (QV4::ExecutionEngine *v4, String *name, QObject *qobjectSingleton, const QQmlType &type, bool *ok)
 
static ReturnedValue instanceOfQObject (const QV4::QQmlTypeWrapper *typeWrapper, const QObjectWrapper *objectWrapper)
 

Function Documentation

◆ DEFINE_OBJECT_VTABLE() [1/2]

DEFINE_OBJECT_VTABLE ( QQmlScopedEnumWrapper  )

◆ DEFINE_OBJECT_VTABLE() [2/2]

DEFINE_OBJECT_VTABLE ( QQmlTypeWrapper  )

◆ enumForSingleton()

static int enumForSingleton ( QV4::ExecutionEngine v4,
String name,
QObject qobjectSingleton,
const QQmlType type,
bool *  ok 
)
static

Definition at line 135 of file qqmltypewrapper.cpp.

References QByteArray::constData(), e, QQmlEnginePrivate::get(), metaObject(), ok, Q_ASSERT, and QV4::ExecutionEngine::qmlEngine().

Referenced by QV4::QQmlTypeWrapper::virtualGet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ instanceOfQObject()

static ReturnedValue instanceOfQObject ( const QV4::QQmlTypeWrapper typeWrapper,
const QObjectWrapper objectWrapper 
)
static

Definition at line 372 of file qqmltypewrapper.cpp.

References QQmlMetaObject::canConvert(), QQmlData::compilationUnit, engine, QV4::Heap::InternalClass::engine, QQmlData::get(), QQmlEnginePrivate::get(), QQmlTypeLoader::getType(), QV4::Managed::internalClass(), QQmlMetaObject::isNull(), QMetaType::isValid(), QQmlMetaType::metaObjectForType(), QV4::QObjectWrapper::object(), Q_ASSERT, QV4::StaticValue::type(), and QQmlEnginePrivate::typeLoader.

Referenced by QV4::QQmlTypeWrapper::virtualInstanceOf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: