Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlvmemetaobject.cpp File Reference

(40fce0b649dbb1861ed84f485eb1a74cc3a679c3)

#include "qqmlvmemetaobject_p.h"
#include <private/qqmlabstractbinding_p.h>
#include <private/qqmlrefcount_p.h>
#include "qqmlpropertyvalueinterceptor_p.h"
#include <qqmlinfo.h>
#include <private/qqmlglobal_p.h>
#include <private/qqmlpropertycachecreator_p.h>
#include <private/qqmlpropertycachemethodarguments_p.h>
#include <private/qqmlvaluetypewrapper_p.h>
#include <private/qv4functionobject_p.h>
#include <private/qv4jscall_p.h>
#include <private/qv4object_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <private/qv4runtime_p.h>
#include <private/qv4scopedvalue_p.h>
#include <private/qv4sequenceobject_p.h>
#include <private/qv4variantassociationobject_p.h>
#include <private/qv4variantobject_p.h>
#include <QtCore/qmetasequence.h>
#include <QtCore/qvarlengtharray.h>
#include <climits>
Include dependency graph for qqmlvmemetaobject.cpp:

Go to the source code of this file.

Classes

class  QQmlVMEMetaObjectEndpoint
struct  PropertyRemap

Functions

static qsizetype list_count (QQmlListProperty< QObject > *prop)
static QObject * list_at (QQmlListProperty< QObject > *prop, qsizetype indexindex)
static void list_replace (QQmlListProperty< QObject > *prop, qsizetype indexindex, QObject *o)
static void list_removeLast (QQmlListProperty< QObject > *prop)
void QQmlVMEMetaObjectEndpoint_callback (QQmlNotifierEndpoint *e, void **)
static bool propertyIndicesConflict (QQmlPropertyIndex aa, QQmlPropertyIndex bb)
static const QMetaObject * stringCastMetaObject (QObject *o, const QMetaObject *toptop)
static void remapNotifyEndpoints (QQmlData *ddata, QObject *objectobject, QV4::ExecutionEngine *v4, const PropertyRemap &remap, int totalSignals)
static void remapBindingTargets (QQmlData *ddata, QObject *objectobject, const PropertyRemap &remap)
static void remapBindingBits (QQmlData *ddata, QObject *objectobject, const PropertyRemap &remap, int totalProperties)

Function Documentation

◆ list_at()

QObject * list_at ( QQmlListProperty< QObject > * prop,
qsizetype index )
static

Definition at line 142 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::isValid().

Here is the call graph for this function:

◆ list_count()

qsizetype list_count ( QQmlListProperty< QObject > * prop)
static

Definition at line 134 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::isValid().

Here is the call graph for this function:

◆ list_removeLast()

void list_removeLast ( QQmlListProperty< QObject > * prop)
static

Definition at line 176 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::activateSignal(), QQmlVMEResolvedList::isValid(), and QQmlVMEResolvedList::removeLast().

Here is the call graph for this function:

◆ list_replace()

void list_replace ( QQmlListProperty< QObject > * prop,
qsizetype index,
QObject * o )
static

Definition at line 167 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::activateSignal(), and QQmlVMEResolvedList::isValid().

Here is the call graph for this function:

◆ propertyIndicesConflict()

bool propertyIndicesConflict ( QQmlPropertyIndex a,
QQmlPropertyIndex b )
static

Definition at line 313 of file qqmlvmemetaobject.cpp.

◆ QQmlVMEMetaObjectEndpoint_callback()

void QQmlVMEMetaObjectEndpoint_callback ( QQmlNotifierEndpoint * e,
void **  )

Definition at line 237 of file qqmlvmemetaobject.cpp.

References QQmlVMEMetaObjectEndpoint::tryConnect().

Here is the call graph for this function:

◆ remapBindingBits()

void remapBindingBits ( QQmlData * ddata,
QObject * object,
const PropertyRemap & remap,
int totalProperties )
static

Binding bits (and their pending counterparts) are keyed by coreIndex. Snapshot the whole own range, clear it, then set each survivor's bits at its new position.

Definition at line 1630 of file qqmlvmemetaobject.cpp.

◆ remapBindingTargets()

void remapBindingTargets ( QQmlData * ddata,
QObject * object,
const PropertyRemap & remap )
static

Bindings store the coreIndex of the property (or alias) they write. Re-target those whose destination moved. A binding on a removed property does not occur in a trivial diff (its BindingRemoved hunk forces a rebuild), so mapCore never returns -1 for a live binding here.

Definition at line 1610 of file qqmlvmemetaobject.cpp.

◆ remapNotifyEndpoints()

void remapNotifyEndpoints ( QQmlData * ddata,
QObject * object,
QV4::ExecutionEngine * v4,
const PropertyRemap & remap,
int totalSignals )
static

Property-change notify endpoints (bindings that captured us, onXChanged handlers, alias endpoints, explicit-signal handlers) are keyed by signal index. Remap every own signal of the instance from this level up.

Definition at line 1573 of file qqmlvmemetaobject.cpp.

◆ stringCastMetaObject()

const QMetaObject * stringCastMetaObject ( QObject * o,
const QMetaObject * top )
static

Definition at line 490 of file qqmlvmemetaobject.cpp.