Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QQmlComponentPrivate::ConstructionState Struct Reference

#include <qqmlcomponent_p.h>

+ Collaboration diagram for QQmlComponentPrivate::ConstructionState:

Public Member Functions

 ConstructionState ()=default
 
 ~ConstructionState ()
 
 ConstructionState (ConstructionState &&other) noexcept
 
void swap (ConstructionState &other)
 
 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP (QQmlComponentPrivate::ConstructionState)
 
void ensureRequiredPropertyStorage ()
 
RequiredPropertiesrequiredProperties ()
 
void addPendingRequiredProperty (const QObject *object, const QQmlPropertyData *propData, const RequiredPropertyInfo &info)
 
bool hasUnsetRequiredProperties () const
 
void clearRequiredProperties ()
 
void appendErrors (const QList< QQmlError > &qmlErrors)
 
void appendCreatorErrors ()
 
QQmlObjectCreatorcreator ()
 
const QQmlObjectCreatorcreator () const
 
void clear ()
 
bool hasCreator () const
 
QQmlObjectCreatorinitCreator (QQmlRefPointer< QQmlContextData > parentContext, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QQmlRefPointer< QQmlContextData > &creationContext)
 
bool isCompletePending () const
 
void setCompletePending (bool isPending)
 

Public Attributes

QList< AnnotatedQmlErrorerrors
 

Detailed Description

Definition at line 102 of file qqmlcomponent_p.h.

Constructor & Destructor Documentation

◆ ConstructionState() [1/2]

QQmlComponentPrivate::ConstructionState::ConstructionState ( )
default

◆ ~ConstructionState()

QQmlComponentPrivate::ConstructionState::~ConstructionState ( )
inline

Definition at line 176 of file qqmlcomponent_p.h.

References QBiPointer< T, T2 >::asT1(), QBiPointer< T, T2 >::asT2(), and QBiPointer< T, T2 >::isT1().

+ Here is the call graph for this function:

◆ ConstructionState() [2/2]

QQmlComponentPrivate::ConstructionState::ConstructionState ( ConstructionState &&  other)
inlinenoexcept

Definition at line 184 of file qqmlcomponent_p.h.

References other().

+ Here is the call graph for this function:

Member Function Documentation

◆ addPendingRequiredProperty()

void QQmlComponentPrivate::ConstructionState::addPendingRequiredProperty ( const QObject object,
const QQmlPropertyData propData,
const RequiredPropertyInfo info 
)
inline

Definition at line 203 of file qqmlcomponent_p.h.

References info, and Q_ASSERT.

Referenced by QQmlComponentPrivate::beginCreate().

+ Here is the caller graph for this function:

◆ appendCreatorErrors()

void QQmlComponentPrivate::ConstructionState::appendCreatorErrors ( )
inline

Moves errors from creator into construction state itself

Definition at line 228 of file qqmlcomponent_p.h.

References creator, and i.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlComponentPrivate::beginDeferred(), and QQmlBindPrivate::buildBindEntries().

+ Here is the caller graph for this function:

◆ appendErrors()

void QQmlComponentPrivate::ConstructionState::appendErrors ( const QList< QQmlError > &  qmlErrors)
inline

Definition at line 221 of file qqmlcomponent_p.h.

References e.

Referenced by QQmlComponentPrivate::fromTypeData().

+ Here is the caller graph for this function:

◆ clear()

void QQmlComponentPrivate::ConstructionState::clear ( )
inline

Definition at line 261 of file qqmlcomponent_p.h.

◆ clearRequiredProperties()

void QQmlComponentPrivate::ConstructionState::clearRequiredProperties ( )
inline

Definition at line 215 of file qqmlcomponent_p.h.

Referenced by QQmlComponentPrivate::beginCreate().

+ Here is the caller graph for this function:

◆ creator() [1/2]

QQmlObjectCreator * QQmlComponentPrivate::ConstructionState::creator ( )
inline

◆ creator() [2/2]

const QQmlObjectCreator * QQmlComponentPrivate::ConstructionState::creator ( ) const
inline

Definition at line 249 of file qqmlcomponent_p.h.

◆ ensureRequiredPropertyStorage()

void QQmlComponentPrivate::ConstructionState::ensureRequiredPropertyStorage ( )
inline

This is meant to be used in the context of QQmlComponent::loadFromModule, when dealing with a C++ type. In that case, we do not have a creator, and need a separate storage for required properties.

Definition at line 297 of file qqmlcomponent_p.h.

References Q_ASSERT.

Referenced by QQmlComponentPrivate::beginCreate().

+ Here is the caller graph for this function:

◆ hasCreator()

bool QQmlComponentPrivate::ConstructionState::hasCreator ( ) const
inline

Definition at line 256 of file qqmlcomponent_p.h.

References creator.

Referenced by QQmlBindPrivate::buildBindEntries(), and QQmlBindPrivate::decodeBinding().

+ Here is the caller graph for this function:

◆ hasUnsetRequiredProperties()

bool QQmlComponentPrivate::ConstructionState::hasUnsetRequiredProperties ( ) const
inline

Definition at line 210 of file qqmlcomponent_p.h.

References properties.

Referenced by QQmlComponentPrivate::completeCreate(), QQmlComponentPrivate::createWithProperties(), and QQmlComponentPrivate::setInitialProperty().

+ Here is the caller graph for this function:

◆ initCreator()

QQmlObjectCreator * QQmlComponentPrivate::ConstructionState::initCreator ( QQmlRefPointer< QQmlContextData parentContext,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > &  compilationUnit,
const QQmlRefPointer< QQmlContextData > &  creationContext 
)
inline

Definition at line 269 of file qqmlcomponent_p.h.

References QQmlComponentPrivate::compilationUnit, and QQmlComponentPrivate::creationContext.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlComponentPrivate::beginDeferred(), and QQmlBindPrivate::decodeBinding().

+ Here is the caller graph for this function:

◆ isCompletePending()

bool QQmlComponentPrivate::ConstructionState::isCompletePending ( ) const
inline

Definition at line 281 of file qqmlcomponent_p.h.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlComponentPrivate::complete(), QQmlComponentPrivate::completeCreate(), and QQmlComponentPrivate::createWithProperties().

+ Here is the caller graph for this function:

◆ QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP()

QQmlComponentPrivate::ConstructionState::QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP ( QQmlComponentPrivate::ConstructionState  )

◆ requiredProperties()

RequiredProperties * QQmlComponentPrivate::ConstructionState::requiredProperties ( )
inline

A list of pending required properties that need to be set in order for object construction to be successful.

Definition at line 194 of file qqmlcomponent_p.h.

Referenced by QQmlComponentPrivate::completeCreate(), QQmlComponentPrivate::createWithProperties(), and QQmlComponentPrivate::setInitialProperty().

+ Here is the caller graph for this function:

◆ setCompletePending()

void QQmlComponentPrivate::ConstructionState::setCompletePending ( bool  isPending)
inline

Definition at line 286 of file qqmlcomponent_p.h.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlComponentPrivate::beginDeferred(), QQmlComponentPrivate::complete(), QQmlComponentPrivate::completeCreate(), and QQmlBindPrivate::decodeBinding().

+ Here is the caller graph for this function:

◆ swap()

void QQmlComponentPrivate::ConstructionState::swap ( ConstructionState other)
inline

Definition at line 108 of file qqmlcomponent_p.h.

References other().

+ Here is the call graph for this function:

Member Data Documentation

◆ errors


The documentation for this struct was generated from the following file: