18 Q_PROPERTY(QQmlObjectModel *sourceModel READ sourceModel WRITE setSourceModel)
19 Q_PROPERTY(QJSValue filterAcceptsItem READ filterAcceptsItem WRITE setFilterAcceptsItem NOTIFY filterAcceptsItemChanged)
20#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
27 bool isValid()
const override;
28 virtual QObject *object(
int index, QQmlIncubator::IncubationMode incubationMode)
override;
29 virtual int count()
const override;
30#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
31 virtual QVariant variantValue(
int index,
const QString &name)
override;
32 virtual ReleaseFlags release(QObject *
object, ReusableFlag reusableFlag = NotReusable)
override;
34 virtual QString stringValue(
int index,
const QString &name)
override;
35 virtual ReleaseFlags release(QObject *
object)
override;
37 virtual void setWatchedRoles(
const QList<QByteArray> &roles)
override;
38 virtual QQmlIncubator::Status incubationStatus(
int index)
override;
39 virtual int indexOf(QObject *
object, QObject *objectContext)
const override;
41 QQmlObjectModel *sourceModel()
const;
42 void setSourceModel(QQmlObjectModel * sourceModel);
43 QJSValue filterAcceptsItem()
const;
44 void setFilterAcceptsItem(QJSValue filterAcceptsItem);
48 QObject *get(
const int i)
const;
49 int mapToSource(
const int i)
const;
50 int mapFromSource(
const int i)
const;
53 void syncDataFromItem();
56 void filterAcceptsItemChanged();