![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmldelegatemodel_p_p.h>
Public Member Functions | |
QQDMIncubationTask (QQmlDelegateModelPrivate *l, IncubationMode mode) | |
void | initializeRequiredProperties (QQmlDelegateModelItem *modelItemToIncubate, QObject *object, QQmlDelegateModel::DelegateModelAccess access) |
void | statusChanged (Status) override |
Called when the status of the incubator changes. | |
void | setInitialState (QObject *) override |
Called after the object is first created, but before complex property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called. | |
Public Member Functions inherited from QQmlIncubator | |
QQmlIncubator (IncubationMode=Asynchronous) | |
Create a new incubator with the specified mode. | |
virtual | ~QQmlIncubator () |
void | clear () |
Clears the incubator. | |
void | forceCompletion () |
Force any in-progress incubation to finish synchronously. | |
bool | isNull () const |
Returns true if the incubator's status() is Null. | |
bool | isReady () const |
Returns true if the incubator's status() is Ready. | |
bool | isError () const |
Returns true if the incubator's status() is Error. | |
bool | isLoading () const |
Returns true if the incubator's status() is Loading. | |
QList< QQmlError > | errors () const |
Return the list of errors encountered while incubating the object. | |
IncubationMode | incubationMode () const |
Return the incubation mode passed to the QQmlIncubator constructor. | |
Status | status () const |
Return the current status of the incubator. | |
QObject * | object () const |
Return the incubated object if the status is Ready, otherwise 0. | |
void | setInitialProperties (const QVariantMap &initialProperties) |
Stores a mapping from property names to initial values, contained in initialProperties, with which the incubated component will be initialized. |
Public Attributes | |
QQmlDelegateModelItem * | incubating = nullptr |
QQmlDelegateModelPrivate * | vdm = nullptr |
QQmlRefPointer< QQmlContextData > | proxyContext |
QPointer< QObject > | proxiedObject = nullptr |
int | index [QQmlListCompositor::MaximumGroupCount] |
Additional Inherited Members | |
Public Types inherited from QQmlIncubator | |
enum | IncubationMode { Asynchronous , AsynchronousIfNested , Synchronous } |
Specifies the mode the incubator operates in. More... | |
enum | Status { Null , Ready , Loading , Error } |
Specifies the status of the QQmlIncubator. More... |
Definition at line 284 of file qqmldelegatemodel_p_p.h.
|
inline |
Definition at line 287 of file qqmldelegatemodel_p_p.h.
References QQDMIncubationTask(), incubating, and vdm.
Referenced by QQDMIncubationTask().
void QQDMIncubationTask::initializeRequiredProperties | ( | QQmlDelegateModelItem * | modelItemToIncubate, |
QObject * | object, | ||
QQmlDelegateModel::DelegateModelAccess | access ) |
Definition at line 1014 of file qqmldelegatemodel.cpp.
References QQmlDelegateModelItem::disableStructuredModelData(), and incubating.
Called after the object is first created, but before complex property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called.
This is equivalent to the point between QQmlComponent::beginCreate() and QQmlComponent::completeCreate(), and can be used to assign initial values to the object's properties.
The default implementation does nothing.
Reimplemented from QQmlIncubator.
Reimplemented in QQmlTableInstanceModelIncubationTask.
Definition at line 1243 of file qqmldelegatemodel.cpp.
References vdm.
Called when the status of the incubator changes.
status is the new status.
The default implementation does nothing.
Reimplemented from QQmlIncubator.
Reimplemented in QQmlTableInstanceModelIncubationTask.
Definition at line 1094 of file qqmldelegatemodel.cpp.
References incubating, QQmlDelegateModelItem::scriptRef, and vdm.
QQmlDelegateModelItem* QQDMIncubationTask::incubating = nullptr |
Definition at line 298 of file qqmldelegatemodel_p_p.h.
Referenced by QQDMIncubationTask(), QQmlDelegateModelPrivate::incubatorStatusChanged(), initializeRequiredProperties(), QQmlDelegateModelPrivate::object(), QQmlDelegateModelPrivate::setInitialState(), and statusChanged().
int QQDMIncubationTask::index[QQmlListCompositor::MaximumGroupCount] |
Definition at line 302 of file qqmldelegatemodel_p_p.h.
Definition at line 301 of file qqmldelegatemodel_p_p.h.
QQmlRefPointer<QQmlContextData> QQDMIncubationTask::proxyContext |
Definition at line 300 of file qqmldelegatemodel_p_p.h.
QQmlDelegateModelPrivate* QQDMIncubationTask::vdm = nullptr |
Definition at line 299 of file qqmldelegatemodel_p_p.h.
Referenced by QQDMIncubationTask(), setInitialState(), and statusChanged().