5#ifndef QQMLABSTRACTDELEGATECOMPONENT_P_H
6#define QQMLABSTRACTDELEGATECOMPONENT_P_H
19#include <private/qtqmlmodelsglobal_p.h>
20#include <private/qqmlcomponentattached_p.h>
21#include <qqmlcomponent.h>
28class QQmlAdaptorModel;
32 QML_NAMED_ELEMENT(AbstractDelegateComponent)
33 QML_ADDED_IN_VERSION(2, 0)
34 QML_UNCREATABLE(
"Cannot create instance of abstract class AbstractDelegateComponent.")
37 QQmlAbstractDelegateComponent(QObject *parent =
nullptr);
38 ~QQmlAbstractDelegateComponent() override;
40 virtual QQmlComponent *delegate(QQmlAdaptorModel *adaptorModel,
int row,
int column = 0)
const = 0;
41 virtual QString role()
const = 0;
44 void delegateChanged();
47 QVariant value(QQmlAdaptorModel *adaptorModel,
int row,
int column,
const QString &role)
const;
void statusChanged(Status status) override
Called when the status of the incubator changes.
QQmlDelegateModelItem * modelItemToIncubate
QQmlTableInstanceModelIncubationTask(QQmlTableInstanceModel *tableInstanceModel, QQmlDelegateModelItem *modelItemToIncubate, IncubationMode mode)
QQmlTableInstanceModel * tableInstanceModel
void setInitialState(QObject *object) override
Called after the object is first created, but before complex property bindings are evaluated and,...
QT_BEGIN_NAMESPACE const char * kModelItemTag
QT_REQUIRE_CONFIG(qml_table_model)
QT_REQUIRE_CONFIG(thread)