![]() |
Qt 6.x
The Qt SDK
|
#include <qqmltableinstancemodel_p.h>
Inheritance diagram for QQmlTableInstanceModelIncubationTask:
Collaboration diagram for QQmlTableInstanceModelIncubationTask:Public Member Functions | |
| QQmlTableInstanceModelIncubationTask (QQmlTableInstanceModel *tableInstanceModel, QQmlDelegateModelItem *modelItemToIncubate, IncubationMode mode) | |
| void | statusChanged (Status status) override |
| Called when the status of the incubator changes. | |
| void | setInitialState (QObject *object) override |
| Called after the object is first created, but before property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called. | |
Public Member Functions inherited from QQDMIncubationTask | |
| QQDMIncubationTask (QQmlDelegateModelPrivate *l, IncubationMode mode) | |
| void | initializeRequiredProperties (QQmlDelegateModelItem *modelItemToIncubate, QObject *object) |
| 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 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 * | modelItemToIncubate = nullptr |
| QQmlTableInstanceModel * | tableInstanceModel = nullptr |
Public Attributes inherited from QQDMIncubationTask | |
| 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... | |
| virtual void | statusChanged (Status) |
| Called when the status of the incubator changes. | |
| virtual void | setInitialState (QObject *) |
| Called after the object is first created, but before property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called. | |
Definition at line 28 of file qqmltableinstancemodel_p.h.
|
inline |
Definition at line 31 of file qqmltableinstancemodel_p.h.
References QQmlIncubator::clear().
Here is the call graph for this function:Called after the object is first created, but before 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 QQDMIncubationTask.
Definition at line 508 of file qqmltableinstancemodel.cpp.
References QObject::deleteLater(), emit, QQmlIncubatorPrivate::get(), QQmlDelegateModelItem::index, QQDMIncubationTask::initializeRequiredProperties(), QQmlInstanceModel::initItem(), modelItemToIncubate, QQmlIncubator::object(), QQmlDelegateModelItem::object, and tableInstanceModel.
Here is the call graph for this function:
|
overridevirtual |
Called when the status of the incubator changes.
status is the new status.
The default implementation does nothing.
Reimplemented from QQDMIncubationTask.
Definition at line 520 of file qqmltableinstancemodel.cpp.
References modelItemToIncubate, Q_ASSERT, QQmlIncubator::status(), and tableInstanceModel.
Here is the call graph for this function:| QQmlDelegateModelItem* QQmlTableInstanceModelIncubationTask::modelItemToIncubate = nullptr |
Definition at line 44 of file qqmltableinstancemodel_p.h.
Referenced by setInitialState(), and statusChanged().
| QQmlTableInstanceModel* QQmlTableInstanceModelIncubationTask::tableInstanceModel = nullptr |
Definition at line 45 of file qqmltableinstancemodel_p.h.
Referenced by setInitialState(), and statusChanged().