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
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 178 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 186 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 205 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 230 of file qqmlcomponent_p.h.

References creator, and i.

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

+ Here is the caller graph for this function:

◆ appendErrors()

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

Definition at line 223 of file qqmlcomponent_p.h.

Referenced by QQmlComponentPrivate::fromTypeData().

+ Here is the caller graph for this function:

◆ clear()

void QQmlComponentPrivate::ConstructionState::clear ( )
inline

Definition at line 263 of file qqmlcomponent_p.h.

◆ clearRequiredProperties()

void QQmlComponentPrivate::ConstructionState::clearRequiredProperties ( )
inline

Definition at line 217 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

Definition at line 244 of file qqmlcomponent_p.h.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlComponentPrivate::complete(), QQmlComponentPrivate::hadTopLevelRequiredProperties(), QQmlComponentPrivate::initializeObjectWithInitialProperties(), and QQmlComponentPrivate::setInitialProperty().

+ Here is the caller graph for this function:

◆ creator() [2/2]

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

Definition at line 251 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 299 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 258 of file qqmlcomponent_p.h.

References creator.

◆ hasUnsetRequiredProperties()

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

Definition at line 212 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 271 of file qqmlcomponent_p.h.

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

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

+ Here is the caller graph for this function:

◆ isCompletePending()

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

Definition at line 283 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 196 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 288 of file qqmlcomponent_p.h.

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

+ 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: