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
QQmlComponentPrivate::ConstructionState Struct Reference

#include <qqmlcomponent_p.h>

Collaboration diagram for QQmlComponentPrivate::ConstructionState:

Public Member Functions

 ConstructionState ()=default
 ConstructionState (ConstructionState &&other) noexcept
 ~ConstructionState ()
void swap (ConstructionState &other)
void ensureRequiredPropertyStorage (QObject *target)
RequiredPropertiesrequiredProperties () const
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 (const QQmlRefPointer< QQmlContextData > &parentContext, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QQmlRefPointer< QQmlContextData > &creationContext, const QString &inlineComponentName)
bool isCompletePending () const
void setCompletePending (bool isPending)
QObjecttarget () const

Public Attributes

QList< AnnotatedQmlErrorerrors

Detailed Description

Definition at line 64 of file qqmlcomponent_p.h.

Constructor & Destructor Documentation

◆ ConstructionState() [1/2]

QQmlComponentPrivate::ConstructionState::ConstructionState ( )
default

◆ ConstructionState() [2/2]

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

Definition at line 233 of file qqmlcomponent_p.h.

◆ ~ConstructionState()

QQmlComponentPrivate::ConstructionState::~ConstructionState ( )
inline

Definition at line 225 of file qqmlcomponent_p.h.

Member Function Documentation

◆ addPendingRequiredProperty()

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

Definition at line 253 of file qqmlcomponent_p.h.

◆ appendCreatorErrors()

void QQmlComponentPrivate::ConstructionState::appendCreatorErrors ( )
inline

Moves errors from creator into construction state itself

Definition at line 278 of file qqmlcomponent_p.h.

◆ appendErrors()

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

Definition at line 271 of file qqmlcomponent_p.h.

◆ clear()

void QQmlComponentPrivate::ConstructionState::clear ( )
inline

Definition at line 311 of file qqmlcomponent_p.h.

◆ clearRequiredProperties()

void QQmlComponentPrivate::ConstructionState::clearRequiredProperties ( )
inline

Definition at line 265 of file qqmlcomponent_p.h.

◆ creator() [1/2]

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

Definition at line 292 of file qqmlcomponent_p.h.

◆ creator() [2/2]

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

Definition at line 299 of file qqmlcomponent_p.h.

◆ ensureRequiredPropertyStorage()

void QQmlComponentPrivate::ConstructionState::ensureRequiredPropertyStorage ( QObject * target)
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 and the target object.

Definition at line 350 of file qqmlcomponent_p.h.

◆ hasCreator()

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

Definition at line 306 of file qqmlcomponent_p.h.

◆ hasUnsetRequiredProperties()

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

Definition at line 260 of file qqmlcomponent_p.h.

◆ initCreator()

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

Definition at line 319 of file qqmlcomponent_p.h.

◆ isCompletePending()

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

Definition at line 334 of file qqmlcomponent_p.h.

◆ requiredProperties()

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

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

Definition at line 243 of file qqmlcomponent_p.h.

◆ setCompletePending()

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

Definition at line 339 of file qqmlcomponent_p.h.

◆ swap()

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

Definition at line 72 of file qqmlcomponent_p.h.

◆ target()

QObject * QQmlComponentPrivate::ConstructionState::target ( ) const
inline

Definition at line 102 of file qqmlcomponent_p.h.

Member Data Documentation

◆ errors

QList<AnnotatedQmlError> QQmlComponentPrivate::ConstructionState::errors

Definition at line 98 of file qqmlcomponent_p.h.


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