Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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  FallbackPropertyQmlData
 
struct  HasSingletonFactory
 
struct  HasSingletonFactory< T, WrapperT, std::void_t< decltype(WrapperT::create(static_cast< QQmlEngine * >(nullptr), static_cast< QJSEngine * >(nullptr)))> >
 
struct  ObjectPropertyQmlData
 
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, decltype(qobject_interface_iid< T * >())> >
 
struct  QmlMarkerFunction
 
struct  QmlMarkerFunction< Ret(Class::*)()>
 
struct  QmlMetaType
 
struct  QmlMetaType< void >
 
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 AOTCompiledContext *aotContext)
 
static void captureFallbackProperty (QObject *object, int coreIndex, int notifyIndex, bool isConstant, const AOTCompiledContext *aotContext)
 
static void captureObjectProperty (QObject *object, const QQmlPropertyCache *propertyCache, const QQmlPropertyData *property, const AOTCompiledContext *aotContext)
 
static bool inherits (const QQmlPropertyCache *descendent, const QQmlPropertyCache *ancestor)
 
template<bool StrictType>
ObjectPropertyQmlData findObjectPropertyQmlData (QV4::Lookup *l, QObject *object)
 
template<bool StrictType = false>
ObjectPropertyResult loadObjectProperty (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
template<bool StrictType = false>
ObjectPropertyResult writeBackObjectProperty (QV4::Lookup *l, QObject *object, void *source)
 
static FallbackPropertyQmlData findFallbackPropertyQmlData (QV4::Lookup *l, QObject *object)
 
static ObjectPropertyResult loadFallbackProperty (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
static ObjectPropertyResult writeBackFallbackProperty (QV4::Lookup *l, QObject *object, void *source)
 
ObjectPropertyResult loadObjectAsVariant (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
ObjectPropertyResult writeBackObjectAsVariant (QV4::Lookup *l, QObject *object, void *source)
 
ObjectPropertyResult loadFallbackAsVariant (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
ObjectPropertyResult writeBackFallbackAsVariant (QV4::Lookup *l, QObject *object, void *source)
 
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, QV4::ExecutionEngine *v4)
 
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, const QMetaProperty *property, QV4::ExecutionEngine *v4)
 
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)
 
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)
 
Q_QML_EXPORT QMetaType compositeMetaType (QV4::ExecutableCompilationUnit *unit, const QString &elementName)
 
Q_QML_EXPORT QMetaType compositeListMetaType (QV4::ExecutableCompilationUnit *unit, const QString &elementName)
 

Typedef Documentation

◆ AutoParentFunction

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

Definition at line 437 of file qqmlprivate.h.

◆ CreateIntoFunction

Definition at line 194 of file qqmlprivate.h.

◆ CreateParentFunction

Definition at line 196 of file qqmlprivate.h.

◆ CreateSingletonFunction

Definition at line 195 of file qqmlprivate.h.

◆ CreateValueTypeFunction

Definition at line 197 of file qqmlprivate.h.

◆ QmlContextPropertyGetter

◆ QmlTypeHasMarker

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

Definition at line 171 of file qqmlprivate.h.

◆ QmlUnitCacheLookupFunction

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

Definition at line 760 of file qqmlprivate.h.

◆ QQmlAttachedPropertiesFunc

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

Definition at line 48 of file qqmlprivate.h.

Enumeration Type Documentation

◆ AutoParentResult

Enumerator
Parented 
IncompatibleObject 
IncompatibleParent 

Definition at line 436 of file qqmlprivate.h.

◆ ObjectLookupResult

Enumerator
Failure 
Object 
Fallback 
ObjectAsVariant 
FallbackAsVariant 

Definition at line 1378 of file qqml.cpp.

◆ ObjectPropertyResult

Enumerator
OK 
NeedsInit 
Deleted 

Definition at line 1031 of file qqml.cpp.

◆ QmlRegistrationWarning

Enumerator
UnconstructibleType 
UnconstructibleSingleton 
NonQObjectWithAtached 

Definition at line 1147 of file qqmlprivate.h.

◆ RegistrationType

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

Definition at line 766 of file qqmlprivate.h.

◆ SingletonConstructionMode

Enumerator
None 
Constructor 
Factory 
FactoryWrapper 

Definition at line 122 of file qqmlprivate.h.

◆ ValueTypeCreationMethod

Enumerator
None 
Construct 
Structured 

Definition at line 439 of file qqmlprivate.h.

Function Documentation

◆ amendException()

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

Definition at line 1467 of file qqml.cpp.

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

Referenced by amendException(), 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 425 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 431 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 836 of file qqmlprivate.h.

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

Referenced by doRegisterTypeAndRevisions().

+ 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 AOTCompiledContext * aotContext )
static

Definition at line 1000 of file qqml.cpp.

References propertyCapture().

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,
const AOTCompiledContext * aotContext )
static

Definition at line 1011 of file qqml.cpp.

References property, and propertyCapture().

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 1234 of file qqml.cpp.

References changeFallbackProperty(), findFallbackPropertyQmlData(), QV4::Lookup::qobjectFallbackLookup, and QQmlPropertyPrivate::removeBinding().

Referenced by changeFallbackProperty(), 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 1198 of file qqml.cpp.

References OK, property, QV4::Lookup::qobjectLookup, and QQmlPropertyPrivate::removeBinding().

+ Here is the call graph for this function:

◆ classInfo()

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

Definition at line 820 of file qqmlprivate.h.

References indexOfOwnClassInfo(), and metaObject().

Referenced by classElementNames(), and doRegisterTypeAndRevisions().

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

◆ compositeListMetaType()

QMetaType QQmlPrivate::compositeListMetaType ( QV4::ExecutableCompilationUnit * unit,
const QString & elementName )

Definition at line 187 of file qqml.cpp.

References QV4::ExecutableCompilationUnit::baseCompilationUnit(), QQmlTypePrivate::compositeQmlType(), QV4::ExecutableCompilationUnit::engine, and QV4::ExecutionEngine::typeLoader().

+ Here is the call graph for this function:

◆ compositeMetaType()

QMetaType QQmlPrivate::compositeMetaType ( QV4::ExecutableCompilationUnit * unit,
const QString & elementName )

Definition at line 179 of file qqml.cpp.

References QV4::ExecutableCompilationUnit::baseCompilationUnit(), QQmlTypePrivate::compositeQmlType(), QV4::ExecutableCompilationUnit::engine, and QV4::ExecutionEngine::typeLoader().

+ Here is the call graph for this function:

◆ createInto()

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

Definition at line 174 of file qqmlprivate.h.

◆ createParent()

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

Definition at line 192 of file qqmlprivate.h.

◆ createSingletonInstance()

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

Definition at line 177 of file qqmlprivate.h.

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

◆ findFallbackPropertyQmlData()

static FallbackPropertyQmlData QQmlPrivate::findFallbackPropertyQmlData ( QV4::Lookup * l,
QObject * object )
static

Definition at line 1094 of file qqml.cpp.

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

Referenced by changeFallbackProperty(), loadFallbackProperty(), and writeBackFallbackProperty().

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

◆ findObjectPropertyQmlData()

template<bool StrictType>
ObjectPropertyQmlData QQmlPrivate::findObjectPropertyQmlData ( QV4::Lookup * l,
QObject * object )

Definition at line 1040 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ indexOfOwnClassInfo()

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

Definition at line 804 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 1022 of file qqml.cpp.

References cache.

Referenced by findObjectPropertyQmlData().

+ Here is the caller graph for this function:

◆ initObjectLookup()

◆ initTypeWrapperLookup()

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

Definition at line 2005 of file qqml.cpp.

References arg, context, QV4::QQmlTypeWrapper::create(), QV4::Scope::engine, error, initTypeWrapperLookup(), QV4::QQmlContextWrapper::lookupSingleton(), QV4::QQmlContextWrapper::lookupType(), QV4::Lookup::nameIndex, Q_ASSERT, QV4::Lookup::qmlContextPropertyGetter, QV4::Lookup::qmlContextSingletonLookup, QV4::Lookup::qmlTypeLookup, QV4::ExecutionEngine::throwTypeError(), QV4::ExecutionEngine::typeLoader(), and wrapper().

Referenced by initTypeWrapperLookup().

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

◆ initValueLookup()

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

Definition at line 1452 of file qqml.cpp.

References QMetaType::iface(), initValueLookup(), isTypeCompatible(), metaObject(), QV4::Lookup::nameIndex, Q_ASSERT, QV4::Lookup::qgadgetLookup, QV4::CompilationUnitRuntimeData::runtimeStrings, QV4::Heap::String::toQString(), and QString::toUtf8().

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

+ 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 1270 of file qqml.cpp.

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

Referenced by initObjectLookup(), initValueLookup(), isTypeCompatible(), 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 1590 of file qqml.cpp.

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

Referenced by isUndefined(), and 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 935 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,
const AOTCompiledContext * aotContext )

Definition at line 1166 of file qqml.cpp.

References QVariant::data(), loadFallbackProperty(), metaObject(), Q_ASSERT, 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,
const AOTCompiledContext * aotContext )
static

Definition at line 1110 of file qqml.cpp.

References captureFallbackProperty(), findFallbackPropertyQmlData(), OK, QV4::Lookup::qobjectFallbackLookup, and QMetaObject::ReadProperty.

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,
const AOTCompiledContext * aotContext )

Definition at line 1143 of file qqml.cpp.

References QVariant::data(), 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,
const AOTCompiledContext * aotContext )

Definition at line 1059 of file qqml.cpp.

References captureObjectProperty(), QQmlPropertyData::coreIndex(), OK, QV4::Lookup::qobjectLookup, and QQmlPropertyData::readProperty().

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 1121 of file qqmlprivate.h.

◆ propertyCapture()

static QQmlPropertyCapture * QQmlPrivate::propertyCapture ( const AOTCompiledContext * aotContext)
static

Definition at line 974 of file qqml.cpp.

References engine, and QQmlEnginePrivate::get().

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 216 of file qqmlengine.cpp.

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

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 134 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 771 of file qqml.cpp.

References assignVersions(), AutoParentRegistration, classElementNames(), CompositeRegistration, CompositeSingletonRegistration, doRegisterSingletonAndRevisions(), doRegisterTypeAndRevisions(), finalizeType(), QTypeRevision::fromMinorVersion(), InterfaceRegistration, qmlregister(), QmlUnitCacheHookRegistration, qWarning, QQmlMetaType::registerAutoParentFunction(), QQmlMetaType::registerCompositeSingletonType(), QQmlMetaType::registerCompositeType(), QQmlMetaType::registerInterface(), QQmlMetaType::registerSequentialContainer(), QQmlMetaType::registerSingletonType(), QQmlMetaType::registerType(), QQmlMetaType::registerUnitCacheHook(), revisionClassInfo(), revisionClassInfos(), SequentialContainerAndRevisionsRegistration, SequentialContainerRegistration, SingletonAndRevisionsRegistration, singletonInstanceInfo(), SingletonRegistration, TypeAndRevisionsRegistration, TypeRegistration, uniqueRevisions(), and QQmlPrivate::RegisterSequentialContainer::uri.

Referenced by doRegisterTypeAndRevisions(), qmlregister(), qmlRegisterAnonymousSequentialContainer(), qmlRegisterAnonymousType(), qmlRegisterCustomExtendedType(), qmlRegisterCustomType(), qmlRegisterExtendedType(), qmlRegisterExtendedType(), qmlRegisterExtendedUncreatableType(), qmlRegisterInterface(), qmlRegisterRevision(), qmlRegisterSequenceAndRevisions(), qmlRegisterSingletonAndRevisions(), 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 1099 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 1026 of file qqmlprivate.h.

References api, 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 923 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 923 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 153 of file qqml.cpp.

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

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,
const QMetaProperty * property,
QV4::ExecutionEngine * v4 )
static

Definition at line 1255 of file qqml.cpp.

References args, changeFallbackProperty(), metaObject(), property, resetFallbackProperty(), QMetaObject::ResetProperty, and QV4::ExecutionEngine::throwError().

Referenced by resetFallbackProperty(), 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,
QV4::ExecutionEngine * v4 )
static

Definition at line 1211 of file qqml.cpp.

References property, and QV4::ExecutionEngine::throwError().

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

+ Here is the call graph for this function:
+ 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 825 of file qqmlprivate.h.

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

Referenced by doRegisterSingletonAndRevisions(), doRegisterTypeAndRevisions(), and 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 901 of file qqml.cpp.

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

Referenced by doRegisterSingletonAndRevisions(), doRegisterTypeAndRevisions(), and 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 147 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 1353 of file qqml.cpp.

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

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

+ 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 1247 of file qqml.cpp.

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

Referenced by QQmlPrivate::AOTCompiledContext::setObjectLookup(), storeFallbackAsVariant(), storeFallbackProperty(), 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 1334 of file qqml.cpp.

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

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

+ 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 1226 of file qqml.cpp.

References property, and storeObjectProperty().

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

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

◆ writeBackFallbackAsVariant()

ObjectPropertyResult QQmlPrivate::writeBackFallbackAsVariant ( QV4::Lookup * l,
QObject * object,
void * source )

Definition at line 1182 of file qqml.cpp.

References QVariant::data(), metaObject(), QVariant::metaType(), Q_ASSERT, QV4::Lookup::qobjectFallbackLookup, variant, and writeBackFallbackProperty().

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

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

◆ writeBackFallbackProperty()

static ObjectPropertyResult QQmlPrivate::writeBackFallbackProperty ( QV4::Lookup * l,
QObject * object,
void * source )
static

Definition at line 1130 of file qqml.cpp.

References findFallbackPropertyQmlData(), OK, QV4::Lookup::qobjectFallbackLookup, and QMetaObject::WriteProperty.

Referenced by writeBackFallbackAsVariant(), QQmlPrivate::AOTCompiledContext::writeBackObjectLookup(), and QQmlPrivate::AOTCompiledContext::writeBackScopeObjectPropertyLookup().

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

◆ writeBackObjectAsVariant()

ObjectPropertyResult QQmlPrivate::writeBackObjectAsVariant ( QV4::Lookup * l,
QObject * object,
void * source )

Definition at line 1155 of file qqml.cpp.

References QVariant::data(), QVariant::metaType(), Q_ASSERT, QV4::Lookup::qobjectLookup, and variant.

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

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

◆ writeBackObjectProperty()

template<bool StrictType = false>
ObjectPropertyResult QQmlPrivate::writeBackObjectProperty ( QV4::Lookup * l,
QObject * object,
void * source )

Definition at line 1077 of file qqml.cpp.

References OK, and QV4::Lookup::qobjectLookup.

Referenced by QQmlPrivate::AOTCompiledContext::writeBackObjectLookup(), and QQmlPrivate::AOTCompiledContext::writeBackScopeObjectPropertyLookup().

+ Here is the caller graph for this function: