4#ifndef QQMLABSTRACTDELEGATECOMPONENT_P_H
5#define QQMLABSTRACTDELEGATECOMPONENT_P_H
18#include <private/qtqmlmodelsglobal_p.h>
19#include <private/qqmlcomponentattached_p.h>
20#include <qqmlcomponent.h>
27class QQmlAdaptorModel;
31 QML_NAMED_ELEMENT(AbstractDelegateComponent)
32 QML_ADDED_IN_VERSION(2, 0)
33 QML_UNCREATABLE(
"Cannot create instance of abstract class AbstractDelegateComponent.")
36 QQmlAbstractDelegateComponent(QObject *parent =
nullptr);
37 ~QQmlAbstractDelegateComponent() override;
39 virtual QQmlComponent *delegate(QQmlAdaptorModel *adaptorModel,
int row,
int column = 0)
const = 0;
40 virtual QString role()
const = 0;
43 void delegateChanged();
46 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,...
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(itemmodel)
QT_BEGIN_NAMESPACE const char * kModelItemTag
QT_REQUIRE_CONFIG(qml_table_model)