4#ifndef QQMLTABLEINSTANCEMODEL_P_H
5#define QQMLTABLEINSTANCEMODEL_P_H
18#include <QtQmlModels/private/qqmldelegatemodel_p.h>
19#include <QtQmlModels/private/qqmldelegatemodel_p_p.h>
21#include <QtCore/qpointer.h>
60 int count()
const override {
return m_adaptorModel.count(); }
61 int rows()
const {
return m_adaptorModel.rowCount(); }
62 int columns()
const {
return m_adaptorModel.columnCount(); }
64 bool isValid()
const override {
return true; }
66 bool canFetchMore()
const {
return m_adaptorModel.canFetchMore(); }
78 ReleaseFlags
release(
QObject *
object, ReusableFlag reusable = NotReusable)
override;
82 void drainReusableItemsPool(
int maxPoolTime)
override;
83 int poolSize()
override {
return m_reusableItemsPool.size(); }
95 enum DestructionMode {
105 QPointer<QQmlContext> m_qmlContext;
106 QQmlRefPointer<QQmlDelegateModelItemMetaType> m_metaType;
108 QHash<int, QQmlDelegateModelItem *> m_modelItems;
110 QList<QQmlIncubator *> m_finishedIncubationTasks;
114 void deleteIncubationTaskLater(
QQmlIncubator *incubationTask);
115 void deleteAllFinishedIncubationTasks();
120 void modelAboutToBeResetCallback();
DarwinBluetooth::DeviceInquiryDelegate * m_delegate
The QQmlComponent class encapsulates a QML component definition.
The QQmlContext class defines a context within a QML engine.
The QQmlIncubator class allows QML objects to be created asynchronously.
void clear()
Clears the incubator.
IncubationMode
Specifies the mode the incubator operates in.
Status status() const
Return the current status of the incubator.
Status
Specifies the status of the QQmlIncubator.
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,...
bool canFetchMore() const
int indexOf(QObject *, QObject *) const override
int count() const override
bool isValid() const override
void setWatchedRoles(const QList< QByteArray > &) override
QVariant variantValue(int, const QString &) override
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QQmlContext * qmlContext(const QObject *obj)
static bool isDoneIncubating(QQmlIncubator::Status status)
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
#define QT_REQUIRE_CONFIG(feature)
view setModel(model)
[17] //! [18]
QSqlQueryModel * model
[16]