Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlPrivate Namespace Reference

Classes

struct  AOTCompiledContext
 
struct  AOTCompiledFunction
 
struct  CachedQmlUnit
 
struct  Constructors
 
struct  Constructors< T, WrapperT, SingletonConstructionMode::Constructor >
 
struct  Constructors< T, WrapperT, SingletonConstructionMode::Factory >
 
struct  Constructors< T, WrapperT, SingletonConstructionMode::FactoryWrapper >
 
struct  Constructors< T, WrapperT, SingletonConstructionMode::None >
 
struct  ExtendedType
 
struct  ExtendedType< T, false, false >
 
struct  ExtendedType< T, false, true >
 
struct  ExtendedType< T, true, false >
 
struct  HasSingletonFactory
 
struct  HasSingletonFactory< T, WrapperT, std::void_t< decltype(WrapperT::create(static_cast< QQmlEngine * >(nullptr), static_cast< QJSEngine * >(nullptr)))> >
 
struct  OverridableAttachedType
 
struct  OverridableAttachedType< QQmlComponent, QQmlComponentAttached >
 
struct  OverridableAttachedType< T, QQmlComponentAttached >
 
struct  QmlAnonymous
 
struct  QmlAnonymous< T, std::void_t< typename T::QmlIsAnonymous > >
 
struct  QmlAttached
 
struct  QmlAttached< T, std::void_t< decltype(T::qmlAttachedProperties)>, true >
 
struct  QmlAttached< T, std::void_t< typename OverridableAttachedType< T, typename T::QmlAttachedType >::Type >, false >
 
struct  QmlAttachedAccessor
 
struct  QmlExtended
 
struct  QmlExtended< T, std::void_t< typename T::QmlExtendedType > >
 
struct  QmlExtendedNamespace
 
struct  QmlExtendedNamespace< T, std::void_t< decltype(T::qmlExtendedNamespace())> >
 
struct  QmlInterface
 
struct  QmlInterface< T, std::void_t< typename T::QmlIsInterface > >
 
struct  QmlMarkerFunction
 
struct  QmlMarkerFunction< Ret(Class::*)()>
 
struct  QmlMetaType
 
struct  QmlResolved
 
struct  QmlResolved< T, std::void_t< typename T::QmlForeignType > >
 
struct  QmlSequence
 
struct  QmlSequence< T, std::void_t< typename T::QmlIsSequence > >
 
struct  QmlSingleton
 
struct  QmlSingleton< T, std::void_t< typename T::QmlIsSingleton > >
 
struct  QmlUncreatable
 
struct  QmlUncreatable< T, std::void_t< typename T::QmlIsUncreatable > >
 
class  QQmlElement
 
struct  RegisterAutoParent
 
struct  RegisterCompositeSingletonType
 
struct  RegisterCompositeType
 
struct  RegisterInterface
 
struct  RegisterQmlUnitCacheHook
 
struct  RegisterSequentialContainer
 
struct  RegisterSequentialContainerAndRevisions
 
struct  RegisterSingletonType
 
struct  RegisterSingletonTypeAndRevisions
 
struct  RegisterType
 
struct  RegisterTypeAndRevisions
 
struct  SingletonInstanceFunctor
 
struct  StaticCastSelector
 
struct  StaticCastSelectorClass
 
struct  StaticCastSelectorClass< From, To, sizeof(int)>
 
struct  StaticMetaObject
 
struct  StaticMetaObject< T, std::void_t< decltype(T::staticMetaObject)> >
 
struct  ValueType
 
struct  ValueType< T, F, false, false >
 
struct  ValueType< T, F, HasCtor, true >
 
struct  ValueType< T, F, true, false >
 
struct  ValueTypeFactory
 
struct  ValueTypeFactory< F, std::void_t< decltype(F::create(QJSValue()))> >
 

Typedefs

using QmlContextPropertyGetter = QV4::ReturnedValue(*)(QV4::Lookup *l, QV4::ExecutionEngine *engine, QV4::Value *thisObject)
 
template<typename A >
using QQmlAttachedPropertiesFunc = A *(*)(QObject *)
 
template<typename T , typename Marker >
using QmlTypeHasMarker = std::is_same< T, typename QmlMarkerFunction< Marker >::ClassType >
 
using CreateIntoFunction = void(*)(void *, void *)
 
using CreateSingletonFunction = QObject *(*)(QQmlEngine *, QJSEngine *)
 
using CreateParentFunction = QObject *(*)(QObject *)
 
using CreateValueTypeFunction = QVariant(*)(const QJSValue &)
 
typedef AutoParentResult(* AutoParentFunction) (QObject *object, QObject *parent)
 
typedef const CachedQmlUnit *(* QmlUnitCacheLookupFunction) (const QUrl &url)
 

Enumerations

enum class  ObjectPropertyResult { OK , NeedsInit , Deleted }
 
enum class  ObjectLookupResult {
  Failure , Object , Fallback , ObjectAsVariant ,
  FallbackAsVariant
}
 
enum class  SingletonConstructionMode { None , Constructor , Factory , FactoryWrapper }
 
enum  AutoParentResult { Parented , IncompatibleObject , IncompatibleParent }
 
enum class  ValueTypeCreationMethod { None , Construct , Structured }
 
enum  RegistrationType {
  TypeRegistration = 0 , InterfaceRegistration = 1 , AutoParentRegistration = 2 , SingletonRegistration = 3 ,
  CompositeRegistration = 4 , CompositeSingletonRegistration = 5 , QmlUnitCacheHookRegistration = 6 , TypeAndRevisionsRegistration = 7 ,
  SingletonAndRevisionsRegistration = 8 , SequentialContainerRegistration = 9 , SequentialContainerAndRevisionsRegistration = 10
}
 
enum  QmlRegistrationWarning { UnconstructibleType , UnconstructibleSingleton , NonQObjectWithAtached }
 

Functions

double jsExponentiate (double base, double exponent)
 
template<>
void qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds, const QMetaObject *extension, bool)
 
static QQmlPropertyCapturepropertyCapture (const QQmlContextData *qmlContext)
 
static void captureFallbackProperty (QObject *object, int coreIndex, int notifyIndex, bool isConstant, const QQmlContextData *qmlContext)
 
static void captureObjectProperty (QObject *object, const QQmlPropertyCache *propertyCache, const QQmlPropertyData *property, QQmlContextData *qmlContext)
 
static bool inherits (const QQmlPropertyCache *descendent, const QQmlPropertyCache *ancestor)
 
template<bool StrictType = false>
ObjectPropertyResult loadObjectProperty (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
static ObjectPropertyResult loadFallbackProperty (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
ObjectPropertyResult loadObjectAsVariant (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
ObjectPropertyResult loadFallbackAsVariant (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
template<bool StrictType, typename Op >
static ObjectPropertyResult changeObjectProperty (QV4::Lookup *l, QObject *object, Op op)
 
template<bool StrictType = false>
static ObjectPropertyResult resetObjectProperty (QV4::Lookup *l, QObject *object)
 
template<bool StrictType = false>
static ObjectPropertyResult storeObjectProperty (QV4::Lookup *l, QObject *object, void *value)
 
template<typename Op >
static ObjectPropertyResult changeFallbackProperty (QV4::Lookup *l, QObject *object, Op op)
 
static ObjectPropertyResult storeFallbackProperty (QV4::Lookup *l, QObject *object, void *value)
 
static ObjectPropertyResult resetFallbackProperty (QV4::Lookup *l, QObject *object)
 
static bool isTypeCompatible (QMetaType lookupType, QMetaType propertyType)
 
static ObjectPropertyResult storeObjectAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *l, QObject *object, void *value)
 
static ObjectPropertyResult storeFallbackAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *l, QObject *object, void *value)
 
static ObjectLookupResult initObjectLookup (const AOTCompiledContext *aotContext, QV4::Lookup *l, QObject *object, QMetaType type)
 
static bool initValueLookup (QV4::Lookup *l, QV4::ExecutableCompilationUnit *compilationUnit, const QMetaObject *metaObject, QMetaType type)
 
static void amendException (QV4::ExecutionEngine *engine)
 
static bool isUndefined (const void *value, QMetaType type)
 
template<QmlContextPropertyGetter qmlContextPropertyGetter>
static void initTypeWrapperLookup (const AOTCompiledContext *context, QV4::Lookup *l, uint importNamespace)
 
void Q_QML_EXPORT qdeclarativeelement_destructor (QObject *)
 
template<typename T , typename WrapperT >
constexpr SingletonConstructionMode singletonConstructionMode ()
 
template<typename T >
void createInto (void *memory, void *)
 
template<typename T , typename WrapperT , SingletonConstructionMode Mode>
QObjectcreateSingletonInstance (QQmlEngine *q, QJSEngine *j)
 
template<typename T >
QObjectcreateParent (QObject *p)
 
template<typename T >
QQmlAttachedPropertiesFunc< QObjectattachedPropertiesFunc ()
 
template<typename T >
const QMetaObjectattachedPropertiesMetaObject ()
 
int Q_QML_EXPORT qmlregister (RegistrationType, void *)
 
void Q_QML_EXPORT qmlunregister (RegistrationType, quintptr)
 
static int indexOfOwnClassInfo (const QMetaObject *metaObject, const char *key, int startOffset=-1)
 
const char * classInfo (const QMetaObject *metaObject, const char *key)
 
QTypeRevision revisionClassInfo (const QMetaObject *metaObject, const char *key, QTypeRevision defaultValue=QTypeRevision())
 
Q_QML_EXPORT QList< QTypeRevisionrevisionClassInfos (const QMetaObject *metaObject, const char *key)
 
bool boolClassInfo (const QMetaObject *metaObject, const char *key, bool defaultValue=false)
 
const char * classElementName (const QMetaObject *metaObject)
 
template<typename T , typename E , typename WrapperT = T>
void qmlRegisterSingletonAndRevisions (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds, const QMetaObject *extension)
 
template<typename T , typename E >
void qmlRegisterTypeAndRevisions (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds, const QMetaObject *extension, bool forceAnonymous=false)
 
template<typename T >
void qmlRegisterSequenceAndRevisions (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds)
 
template<>
void Q_QML_EXPORT qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds, const QMetaObject *, bool)
 
constexpr QtPrivate::QMetaTypeInterface metaTypeForNamespace (const QtPrivate::QMetaTypeInterface::MetaObjectFn &metaObjectFunction, const char *name)
 
Q_QML_EXPORT QObjectqmlExtendedObject (QObject *, int)
 
Q_QML_EXPORT void qmlRegistrationWarning (QmlRegistrationWarning warning, QMetaType type)
 

Typedef Documentation

◆ AutoParentFunction

typedef AutoParentResult(* QQmlPrivate::AutoParentFunction) (QObject *object, QObject *parent)

Definition at line 432 of file qqmlprivate.h.

◆ CreateIntoFunction

using QQmlPrivate::CreateIntoFunction = typedef void (*)(void *, void *)

Definition at line 189 of file qqmlprivate.h.

◆ CreateParentFunction

Definition at line 191 of file qqmlprivate.h.

◆ CreateSingletonFunction

Definition at line 190 of file qqmlprivate.h.

◆ CreateValueTypeFunction

Definition at line 192 of file qqmlprivate.h.

◆ QmlContextPropertyGetter

Definition at line 1723 of file qqml.cpp.

◆ QmlTypeHasMarker

template<typename T , typename Marker >
using QQmlPrivate::QmlTypeHasMarker = typedef std::is_same<T, typename QmlMarkerFunction<Marker>::ClassType>

Definition at line 166 of file qqmlprivate.h.

◆ QmlUnitCacheLookupFunction

typedef const CachedQmlUnit *(* QQmlPrivate::QmlUnitCacheLookupFunction) (const QUrl &url)

Definition at line 735 of file qqmlprivate.h.

◆ QQmlAttachedPropertiesFunc

template<typename A >
using QQmlPrivate::QQmlAttachedPropertiesFunc = typedef A *(*)(QObject *)

Definition at line 47 of file qqmlprivate.h.

Enumeration Type Documentation

◆ AutoParentResult

Enumerator
Parented 
IncompatibleObject 
IncompatibleParent 

Definition at line 431 of file qqmlprivate.h.

◆ ObjectLookupResult

Enumerator
Failure 
Object 
Fallback 
ObjectAsVariant 
FallbackAsVariant 

Definition at line 1148 of file qqml.cpp.

◆ ObjectPropertyResult

Enumerator
OK 
NeedsInit 
Deleted 

Definition at line 883 of file qqml.cpp.

◆ QmlRegistrationWarning

Enumerator
UnconstructibleType 
UnconstructibleSingleton 
NonQObjectWithAtached 

Definition at line 1130 of file qqmlprivate.h.

◆ RegistrationType

Enumerator
TypeRegistration 
InterfaceRegistration 
AutoParentRegistration 
SingletonRegistration 
CompositeRegistration 
CompositeSingletonRegistration 
QmlUnitCacheHookRegistration 
TypeAndRevisionsRegistration 
SingletonAndRevisionsRegistration 
SequentialContainerRegistration 
SequentialContainerAndRevisionsRegistration 

Definition at line 741 of file qqmlprivate.h.

◆ SingletonConstructionMode

Enumerator
None 
Constructor 
Factory 
FactoryWrapper 

Definition at line 117 of file qqmlprivate.h.

◆ ValueTypeCreationMethod

Enumerator
None 
Construct 
Structured 

Definition at line 434 of file qqmlprivate.h.

Function Documentation

◆ amendException()

static void QQmlPrivate::amendException ( QV4::ExecutionEngine engine)
static

Definition at line 1237 of file qqml.cpp.

References QSet< T >::begin(), engine, error, it, and Q_ASSERT.

Referenced by QQmlPrivate::AOTCompiledContext::initCallGlobalLookup(), QQmlPrivate::AOTCompiledContext::initCallObjectPropertyLookup(), QQmlPrivate::AOTCompiledContext::initCallQmlContextPropertyLookup(), QQmlPrivate::AOTCompiledContext::initGetObjectLookup(), QQmlPrivate::AOTCompiledContext::initLoadGlobalLookup(), QQmlPrivate::AOTCompiledContext::initLoadScopeObjectPropertyLookup(), and QQmlPrivate::AOTCompiledContext::initSetObjectLookup().

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

◆ attachedPropertiesFunc()

template<typename T >
QQmlAttachedPropertiesFunc< QObject > QQmlPrivate::attachedPropertiesFunc ( )
inline

Definition at line 420 of file qqmlprivate.h.

References QQmlPrivate::QmlAttachedAccessor< T >::attachedPropertiesFunc().

+ Here is the call graph for this function:

◆ attachedPropertiesMetaObject()

template<typename T >
const QMetaObject * QQmlPrivate::attachedPropertiesMetaObject ( )
inline

Definition at line 426 of file qqmlprivate.h.

References QQmlPrivate::QmlAttachedAccessor< T >::staticMetaObject().

+ Here is the call graph for this function:

◆ boolClassInfo()

bool QQmlPrivate::boolClassInfo ( const QMetaObject metaObject,
const char *  key,
bool  defaultValue = false 
)
inline

Definition at line 811 of file qqmlprivate.h.

References indexOfOwnClassInfo(), metaObject(), and qstrcmp().

Referenced by qmlregister().

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

◆ captureFallbackProperty()

static void QQmlPrivate::captureFallbackProperty ( QObject object,
int  coreIndex,
int  notifyIndex,
bool  isConstant,
const QQmlContextData qmlContext 
)
static

Definition at line 852 of file qqml.cpp.

References propertyCapture(), and qmlContext().

Referenced by QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::captureQmlContextPropertyLookup(), and loadFallbackProperty().

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

◆ captureObjectProperty()

static void QQmlPrivate::captureObjectProperty ( QObject object,
const QQmlPropertyCache propertyCache,
const QQmlPropertyData property,
QQmlContextData qmlContext 
)
static

Definition at line 863 of file qqml.cpp.

References property, propertyCapture(), and qmlContext().

Referenced by QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::captureQmlContextPropertyLookup(), and loadObjectProperty().

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

◆ changeFallbackProperty()

template<typename Op >
static ObjectPropertyResult QQmlPrivate::changeFallbackProperty ( QV4::Lookup l,
QObject object,
Op  op 
)
static

Definition at line 1006 of file qqml.cpp.

References QV4::Lookup::coreIndex, Deleted, QQmlData::get(), QQmlData::isQueuedForDeletion, metaObject(), QV4::Lookup::metaObject, NeedsInit, OK, Q_ASSERT, QV4::Lookup::qobjectFallbackLookup, QQmlPropertyPrivate::removeBinding(), and QQmlData::wasDeleted().

Referenced by resetFallbackProperty(), and storeFallbackProperty().

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

◆ changeObjectProperty()

template<bool StrictType, typename Op >
static ObjectPropertyResult QQmlPrivate::changeObjectProperty ( QV4::Lookup l,
QObject object,
Op  op 
)
static

Definition at line 969 of file qqml.cpp.

References QQmlRefPointer< T >::data(), Deleted, QQmlData::get(), inherits(), QQmlData::isQueuedForDeletion, NeedsInit, OK, property, QV4::Lookup::propertyCache, QQmlData::propertyCache, QV4::Lookup::propertyData, Q_ASSERT, QV4::Lookup::qobjectLookup, QQmlPropertyPrivate::removeBinding(), and QQmlData::wasDeleted().

+ Here is the call graph for this function:

◆ classElementName()

const char * QQmlPrivate::classElementName ( const QMetaObject metaObject)
inline

Definition at line 820 of file qqmlprivate.h.

References classInfo(), metaObject(), qstrcmp(), and qWarning.

Referenced by qmlregister().

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

◆ classInfo()

const char * QQmlPrivate::classInfo ( const QMetaObject metaObject,
const char *  key 
)
inline

Definition at line 795 of file qqmlprivate.h.

References indexOfOwnClassInfo(), and metaObject().

Referenced by classElementName(), and qmlregister().

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

◆ createInto()

template<typename T >
void QQmlPrivate::createInto ( void memory,
void  
)

Definition at line 169 of file qqmlprivate.h.

◆ createParent()

template<typename T >
QObject * QQmlPrivate::createParent ( QObject p)

Definition at line 187 of file qqmlprivate.h.

◆ createSingletonInstance()

template<typename T , typename WrapperT , SingletonConstructionMode Mode>
QObject * QQmlPrivate::createSingletonInstance ( QQmlEngine q,
QJSEngine j 
)

Definition at line 172 of file qqmlprivate.h.

References Constructor, Factory, FactoryWrapper, j, and Q_UNUSED.

◆ indexOfOwnClassInfo()

static int QQmlPrivate::indexOfOwnClassInfo ( const QMetaObject metaObject,
const char *  key,
int  startOffset = -1 
)
static

Definition at line 779 of file qqmlprivate.h.

References i, metaObject(), and qstrcmp().

Referenced by boolClassInfo(), classInfo(), revisionClassInfo(), and revisionClassInfos().

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

◆ inherits()

static bool QQmlPrivate::inherits ( const QQmlPropertyCache descendent,
const QQmlPropertyCache ancestor 
)
static

Definition at line 874 of file qqml.cpp.

References cache.

Referenced by changeObjectProperty(), and loadObjectProperty().

+ Here is the caller graph for this function:

◆ initObjectLookup()

static ObjectLookupResult QQmlPrivate::initObjectLookup ( const AOTCompiledContext aotContext,
QV4::Lookup l,
QObject object,
QMetaType  type 
)
static

◆ initTypeWrapperLookup()

template<QmlContextPropertyGetter qmlContextPropertyGetter>
static void QQmlPrivate::initTypeWrapperLookup ( const AOTCompiledContext context,
QV4::Lookup l,
uint  importNamespace 
)
static

◆ initValueLookup()

static bool QQmlPrivate::initValueLookup ( QV4::Lookup l,
QV4::ExecutableCompilationUnit compilationUnit,
const QMetaObject metaObject,
QMetaType  type 
)
static

Definition at line 1222 of file qqml.cpp.

References QV4::Lookup::coreIndex, QMetaType::iface(), isTypeCompatible(), metaObject(), QV4::Lookup::metaObject, QV4::Lookup::metaType, QV4::Lookup::nameIndex, Q_ASSERT, QV4::Lookup::qgadgetLookup, QV4::CompiledData::CompilationUnitBase::runtimeStrings, QV4::Heap::String::toQString(), and QString::toUtf8().

Referenced by QQmlPrivate::AOTCompiledContext::initGetValueLookup(), and QQmlPrivate::AOTCompiledContext::initSetValueLookup().

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

◆ isTypeCompatible()

static bool QQmlPrivate::isTypeCompatible ( QMetaType  lookupType,
QMetaType  propertyType 
)
static

Definition at line 1041 of file qqml.cpp.

References QMetaType::flags(), QMetaType::IsEnumeration, QMetaType::IsQmlList, QMetaType::IsUnsignedEnumeration, QMetaType::isValid(), QMetaType::metaObject(), QQmlMetaObject::metaObject(), QQmlMetaType::metaObjectForType(), QMetaType::PointerToQObject, QMetaType::sizeOf(), and QMetaObject::superClass().

Referenced by initObjectLookup(), initValueLookup(), storeFallbackAsVariant(), QQmlPrivate::AOTCompiledContext::storeNameSloppy(), and storeObjectAsVariant().

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

◆ isUndefined()

static bool QQmlPrivate::isUndefined ( const void value,
QMetaType  type 
)
static

Definition at line 1360 of file qqml.cpp.

References QJSValue::isUndefined(), and QJSPrimitiveValue::Undefined.

Referenced by QQmlPrivate::AOTCompiledContext::storeNameSloppy().

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

◆ jsExponentiate()

double QQmlPrivate::jsExponentiate ( double  base,
double  exponent 
)
inline
Since
6.4

Performs JavaScript's Number::exponentiate operation on base and exponent, and returns the result.

See https://tc39.es/ecma262/multipage/ecmascript-data-types-and-values.html#sec-numeric-types-number-exponentiate

Definition at line 919 of file qjsprimitivevalue.h.

References base, QJSNumberCoercion::equals(), and qIsNull().

Referenced by QV4::Runtime::Exp::call(), QV4::Moth::VME::interpret(), and QV4::MathObject::method_pow().

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

◆ loadFallbackAsVariant()

ObjectPropertyResult QQmlPrivate::loadFallbackAsVariant ( QV4::Lookup l,
QObject object,
void target,
QQmlContextData qmlContext 
)

Definition at line 952 of file qqml.cpp.

References QV4::Lookup::coreIndex, QVariant::data(), loadFallbackProperty(), metaObject(), QV4::Lookup::metaObject, Q_ASSERT, qmlContext(), QV4::Lookup::qobjectFallbackLookup, and variant.

Referenced by QQmlPrivate::AOTCompiledContext::getObjectLookup().

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

◆ loadFallbackProperty()

static ObjectPropertyResult QQmlPrivate::loadFallbackProperty ( QV4::Lookup l,
QObject object,
void target,
QQmlContextData qmlContext 
)
static

Definition at line 913 of file qqml.cpp.

References captureFallbackProperty(), QV4::Lookup::coreIndex, Deleted, QQmlData::flushPendingBinding(), QQmlData::get(), QQmlData::hasPendingBindingBit(), QV4::Lookup::isConstant, QQmlData::isQueuedForDeletion, metaObject(), QV4::Lookup::metaObject, NeedsInit, QV4::Lookup::notifyIndex, OK, Q_ASSERT, qmlContext(), QV4::Lookup::qobjectFallbackLookup, QMetaObject::ReadProperty, and QQmlData::wasDeleted().

Referenced by QQmlPrivate::AOTCompiledContext::getObjectLookup(), loadFallbackAsVariant(), and QQmlPrivate::AOTCompiledContext::loadScopeObjectPropertyLookup().

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

◆ loadObjectAsVariant()

ObjectPropertyResult QQmlPrivate::loadObjectAsVariant ( QV4::Lookup l,
QObject object,
void target,
QQmlContextData qmlContext 
)

Definition at line 940 of file qqml.cpp.

References QVariant::data(), QV4::Lookup::propertyData, QQmlPropertyData::propType(), qmlContext(), QV4::Lookup::qobjectLookup, and variant.

Referenced by QQmlPrivate::AOTCompiledContext::getObjectLookup().

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

◆ loadObjectProperty()

template<bool StrictType = false>
ObjectPropertyResult QQmlPrivate::loadObjectProperty ( QV4::Lookup l,
QObject object,
void target,
QQmlContextData qmlContext 
)

Definition at line 886 of file qqml.cpp.

References captureObjectProperty(), QQmlPropertyData::coreIndex(), QQmlRefPointer< T >::data(), Deleted, QQmlData::flushPendingBinding(), QQmlData::get(), QQmlData::hasPendingBindingBit(), inherits(), QQmlData::isQueuedForDeletion, NeedsInit, OK, property, QV4::Lookup::propertyCache, QQmlData::propertyCache, QV4::Lookup::propertyData, Q_ASSERT, qmlContext(), QV4::Lookup::qobjectLookup, and QQmlData::wasDeleted().

Referenced by QQmlPrivate::AOTCompiledContext::getObjectLookup(), and QQmlPrivate::AOTCompiledContext::loadScopeObjectPropertyLookup().

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

◆ metaTypeForNamespace()

constexpr QtPrivate::QMetaTypeInterface QQmlPrivate::metaTypeForNamespace ( const QtPrivate::QMetaTypeInterface::MetaObjectFn metaObjectFunction,
const char *  name 
)
constexpr

Definition at line 1104 of file qqmlprivate.h.

◆ propertyCapture()

static QQmlPropertyCapture * QQmlPrivate::propertyCapture ( const QQmlContextData qmlContext)
static

Definition at line 840 of file qqml.cpp.

References engine, QQmlContext::engine(), QQmlEnginePrivate::get(), QQmlEnginePrivate::propertyCapture, Q_ASSERT, and qmlContext().

Referenced by captureFallbackProperty(), captureObjectProperty(), and QQmlPrivate::AOTCompiledContext::captureTranslation().

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

◆ qdeclarativeelement_destructor()

void QQmlPrivate::qdeclarativeelement_destructor ( QObject o)

Definition at line 214 of file qqmlengine.cpp.

References d, QObjectPrivate::get(), QQmlData::get(), QQmlData::markAsDeleted(), and o.

Referenced by QQmlPrivate::QQmlElement< T >::~QQmlElement().

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

◆ qmlExtendedObject()

QObject * QQmlPrivate::qmlExtendedObject ( QObject object,
int  index 
)

Definition at line 130 of file qqml.cpp.

References QMetaObject::CustomCall, d, QQmlProxyMetaObject::extensionObjectId(), and QObjectPrivate::get().

Referenced by qmlExtendedObject().

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

◆ qmlregister()

int QQmlPrivate::qmlregister ( RegistrationType  type,
void data 
)

Definition at line 483 of file qqml.cpp.

References QList< T >::append(), assignVersions(), AutoParentRegistration, availableRevisions(), boolClassInfo(), classElementName(), classInfo(), CompositeRegistration, CompositeSingletonRegistration, Construct, QQmlPrivate::RegisterType::create, QQmlPrivate::RegisterType::CurrentVersion, QQmlPrivate::RegisterType::customParser, QQmlPrivate::RegisterType::elementName, QTypeRevision::fromMinorVersion(), QString::fromUtf8(), QTypeRevision::fromVersion(), QQmlType::index(), InterfaceRegistration, QString::isEmpty(), QTypeRevision::isValid(), QQmlType::isValid(), QQmlPrivate::RegisterSequentialContainer::metaSequence, method, None, QMetaType::PointerToQObject, prepareRevisions(), qmlregister(), QmlUnitCacheHookRegistration, QQmlPrivate::RegisterSingletonType::qObjectApi, qstrcmp(), QQmlMetaType::registerAutoParentFunction(), QQmlMetaType::registerCompositeSingletonType(), QQmlMetaType::registerCompositeType(), QQmlMetaType::registerInterface(), QQmlMetaType::registerSequentialContainer(), QQmlMetaType::registerSingletonType(), QQmlMetaType::registerType(), QQmlMetaType::registerUndeletableType(), QQmlMetaType::registerUnitCacheHook(), QQmlPrivate::RegisterType::revision, QQmlPrivate::RegisterSequentialContainer::revision, revisionClassInfo(), revisionClassInfos(), SequentialContainerAndRevisionsRegistration, SequentialContainerRegistration, SingletonAndRevisionsRegistration, SingletonRegistration, Structured, TypeAndRevisionsRegistration, QQmlPrivate::RegisterSingletonType::typeName, TypeRegistration, uniqueRevisions(), QQmlPrivate::RegisterSingletonType::uri, QQmlPrivate::RegisterSequentialContainer::uri, QQmlPrivate::RegisterType::userdata, QQmlPrivate::RegisterType::version, QQmlPrivate::RegisterSingletonType::version, and QQmlPrivate::RegisterSequentialContainer::version.

Referenced by qmlregister(), qmlRegisterAnonymousSequentialContainer(), qmlRegisterAnonymousType(), qmlRegisterCustomExtendedType(), qmlRegisterCustomType(), qmlRegisterExtendedType(), qmlRegisterExtendedType(), qmlRegisterExtendedUncreatableType(), qmlRegisterInterface(), qmlRegisterRevision(), qmlRegisterSequenceAndRevisions(), qmlRegisterSingletonAndRevisions(), qmlRegisterSingletonType(), qmlRegisterSingletonType(), qmlRegisterSingletonType(), qmlRegisterSingletonType(), qmlRegisterType(), qmlRegisterType(), qmlRegisterType< void >(), qmlRegisterTypeAndRevisions(), qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void >(), qmlRegisterUncreatableMetaObject(), qmlRegisterUncreatableType(), qt_quick3d_defineModule(), and qt_quickitems_defineModule().

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

◆ qmlRegisterSequenceAndRevisions()

template<typename T >
void QQmlPrivate::qmlRegisterSequenceAndRevisions ( const char *  uri,
int  versionMajor,
const QMetaObject classInfoMetaObject,
QVector< int > *  qmlTypeIds 
)

Definition at line 1082 of file qqmlprivate.h.

References QTypeRevision::fromMajorVersion(), qmlregister(), and SequentialContainerAndRevisionsRegistration.

+ Here is the call graph for this function:

◆ qmlRegisterSingletonAndRevisions()

template<typename T , typename E , typename WrapperT = T>
void QQmlPrivate::qmlRegisterSingletonAndRevisions ( const char *  uri,
int  versionMajor,
const QMetaObject classInfoMetaObject,
QVector< int > *  qmlTypeIds,
const QMetaObject extension 
)

Definition at line 1009 of file qqmlprivate.h.

References extension(), QTypeRevision::fromMajorVersion(), qmlregister(), QQmlPrivate::QmlMetaType< T >::self(), SingletonAndRevisionsRegistration, and QQmlPrivate::StaticMetaObject< T, typename >::staticMetaObject().

+ Here is the call graph for this function:

◆ qmlRegisterTypeAndRevisions()

template<typename T , typename E >
void QQmlPrivate::qmlRegisterTypeAndRevisions ( const char *  uri,
int  versionMajor,
const QMetaObject classInfoMetaObject,
QVector< int > *  qmlTypeIds,
const QMetaObject extension,
bool  forceAnonymous = false 
)

◆ qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void >() [1/2]

template<>
void Q_QML_EXPORT QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > ( const char *  uri,
int  versionMajor,
const QMetaObject classInfoMetaObject,
QVector< int > *  qmlTypeIds,
const QMetaObject extension,
bool   
)

Definition at line 769 of file qqml.cpp.

References QQmlPrivate::StaticCastSelector< From, To >::cast(), extension(), QTypeRevision::fromMajorVersion(), QQmlPrivate::QmlMetaType< T >::list(), qmlregister(), QQmlPrivate::QmlMetaType< T >::self(), QQmlPrivate::QmlMetaType< T >::sequence(), and TypeAndRevisionsRegistration.

+ Here is the call graph for this function:

◆ qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void >() [2/2]

template<>
void QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > ( const char *  uri,
int  versionMajor,
const QMetaObject classInfoMetaObject,
QVector< int > *  qmlTypeIds,
const QMetaObject extension,
bool   
)

Definition at line 769 of file qqml.cpp.

References QQmlPrivate::StaticCastSelector< From, To >::cast(), extension(), QTypeRevision::fromMajorVersion(), QQmlPrivate::QmlMetaType< T >::list(), qmlregister(), QQmlPrivate::QmlMetaType< T >::self(), QQmlPrivate::QmlMetaType< T >::sequence(), and TypeAndRevisionsRegistration.

+ Here is the call graph for this function:

◆ qmlRegistrationWarning()

void QQmlPrivate::qmlRegistrationWarning ( QQmlPrivate::QmlRegistrationWarning  warning,
QMetaType  type 
)

Definition at line 149 of file qqml.cpp.

References QMetaType::name(), NonQObjectWithAtached, qWarning, UnconstructibleSingleton, and UnconstructibleType.

Referenced by QmlTypeAndRevisionsRegistration< T, Resolved, Extended, false, false, false, false >::registerTypeAndRevisions(), QmlTypeAndRevisionsRegistration< T, Resolved, Extended, false, false, false, true >::registerTypeAndRevisions(), and QmlTypeAndRevisionsRegistration< T, Resolved, Extended, true, false, false, false >::registerTypeAndRevisions().

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

◆ qmlunregister()

◆ resetFallbackProperty()

static ObjectPropertyResult QQmlPrivate::resetFallbackProperty ( QV4::Lookup l,
QObject object 
)
static

Definition at line 1033 of file qqml.cpp.

References args, changeFallbackProperty(), metaObject(), and QMetaObject::ResetProperty.

Referenced by storeFallbackAsVariant(), and QQmlPrivate::AOTCompiledContext::storeNameSloppy().

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

◆ resetObjectProperty()

template<bool StrictType = false>
static ObjectPropertyResult QQmlPrivate::resetObjectProperty ( QV4::Lookup l,
QObject object 
)
static

Definition at line 990 of file qqml.cpp.

References property.

Referenced by QQmlPrivate::AOTCompiledContext::storeNameSloppy().

+ Here is the caller graph for this function:

◆ revisionClassInfo()

QTypeRevision QQmlPrivate::revisionClassInfo ( const QMetaObject metaObject,
const char *  key,
QTypeRevision  defaultValue = QTypeRevision() 
)
inline

Definition at line 800 of file qqmlprivate.h.

References QTypeRevision::fromEncodedVersion(), indexOfOwnClassInfo(), metaObject(), and QLatin1StringView::toInt().

Referenced by qmlregister().

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

◆ revisionClassInfos()

QList< QTypeRevision > QQmlPrivate::revisionClassInfos ( const QMetaObject metaObject,
const char *  key 
)

Definition at line 747 of file qqml.cpp.

References QTypeRevision::fromEncodedVersion(), indexOfOwnClassInfo(), metaObject(), QList< T >::push_back(), and QLatin1StringView::toInt().

Referenced by qmlregister().

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

◆ singletonConstructionMode()

template<typename T , typename WrapperT >
constexpr SingletonConstructionMode QQmlPrivate::singletonConstructionMode ( )
constexpr

Definition at line 142 of file qqmlprivate.h.

References Constructor, Factory, FactoryWrapper, and None.

◆ storeFallbackAsVariant()

static ObjectPropertyResult QQmlPrivate::storeFallbackAsVariant ( QV4::ExecutionEngine v4,
QV4::Lookup l,
QObject object,
void value 
)
static

Definition at line 1124 of file qqml.cpp.

References QV4::Lookup::coreIndex, QVariant::data(), QV4::ExecutionEngine::fromVariant(), isTypeCompatible(), QMetaType::isValid(), metaObject(), QV4::Lookup::metaObject, QVariant::metaType(), QV4::ExecutionEngine::metaTypeFromJS(), Q_ASSERT, QV4::Lookup::qobjectFallbackLookup, resetFallbackProperty(), storeFallbackProperty(), and variant.

Referenced by QQmlPrivate::AOTCompiledContext::setObjectLookup().

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

◆ storeFallbackProperty()

static ObjectPropertyResult QQmlPrivate::storeFallbackProperty ( QV4::Lookup l,
QObject object,
void value 
)
static

Definition at line 1025 of file qqml.cpp.

References args, changeFallbackProperty(), metaObject(), and QMetaObject::WriteProperty.

Referenced by QQmlPrivate::AOTCompiledContext::setObjectLookup(), storeFallbackAsVariant(), and QQmlPrivate::AOTCompiledContext::storeNameSloppy().

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

◆ storeObjectAsVariant()

static ObjectPropertyResult QQmlPrivate::storeObjectAsVariant ( QV4::ExecutionEngine v4,
QV4::Lookup l,
QObject object,
void value 
)
static

Definition at line 1105 of file qqml.cpp.

References QVariant::data(), QV4::ExecutionEngine::fromVariant(), isTypeCompatible(), QVariant::isValid(), QVariant::metaType(), QV4::ExecutionEngine::metaTypeFromJS(), QV4::Lookup::propertyData, QQmlPropertyData::propType(), QV4::Lookup::qobjectLookup, and variant.

Referenced by QQmlPrivate::AOTCompiledContext::setObjectLookup().

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

◆ storeObjectProperty()

template<bool StrictType = false>
static ObjectPropertyResult QQmlPrivate::storeObjectProperty ( QV4::Lookup l,
QObject object,
void value 
)
static

Definition at line 998 of file qqml.cpp.

References property.

Referenced by QQmlPrivate::AOTCompiledContext::setObjectLookup(), and QQmlPrivate::AOTCompiledContext::storeNameSloppy().

+ Here is the caller graph for this function: