21#include <QtQml/private/qbipointer_p.h>
23#include <QtCore/qpointer.h>
49 m_elementType = QQmlMetaType::rawMetaObjectForType(
50 QQmlMetaType::listValueType(propertyType)).metaObject();
57 const QMetaObject *m_elementType =
nullptr;
65 using value_type = T*;
77 if (m_iter ==
nullptr)
79 return m_iter->m_list->at(m_iter->m_list, m_iter->m_i);
83 m_iter->m_list->replace(m_iter->m_list, m_iter->m_i, value);
154 return QQmlListIterator(m_list, m_i + j);
159 return QQmlListIterator(m_list, m_i - j);
175 return a.m_list == b.m_list && a.m_i == b.m_i;
180 return a.m_list != b.m_list || a.m_i != b.m_i;
210 return i.m_i - j.m_i;
reference operator*() const
pointer(const QQmlListIterator *iter)
QQmlListIterator operator->() const
reference(const QQmlListIterator *iter)
reference(reference &&)=default
reference & operator=(reference &&value)
reference & operator=(const reference &value)
reference & operator=(T *value)
reference(const reference &)=default
friend void swap(reference a, reference b)
friend QQmlListIterator operator+(qsizetype i, const QQmlListIterator &j)
friend bool operator<=(const QQmlListIterator &i, const QQmlListIterator &j)
QQmlListIterator operator-(qsizetype j)
reference operator*() const
friend qsizetype operator-(const QQmlListIterator &i, const QQmlListIterator &j)
pointer operator->() const
friend bool operator==(const QQmlListIterator &a, const QQmlListIterator &b)
QQmlListIterator(QQmlListProperty< T > *list, qsizetype i)
friend bool operator>=(const QQmlListIterator &i, const QQmlListIterator &j)
QQmlListIterator operator+(qsizetype j)
QQmlListIterator & operator++()
friend bool operator>(const QQmlListIterator &i, const QQmlListIterator &j)
friend bool operator<(const QQmlListIterator &i, const QQmlListIterator &j)
QQmlListIterator & operator-=(qsizetype j)
QQmlListIterator operator++(int)
friend bool operator!=(const QQmlListIterator &a, const QQmlListIterator &b)
QQmlListIterator()=default
QQmlListIterator & operator--()
QQmlListIterator & operator+=(qsizetype j)
QQmlListIterator operator--(int)
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
QQmlListProperty(QObject *o, QList< T * > *list)
bool operator==(const QQmlListProperty &o) const
Returns true if this QQmlListProperty is equal to other, otherwise false.
QQmlListProperty(QObject *o, void *d, AppendFunction a, CountFunction c, AtFunction t, ClearFunction r)
Construct a QQmlListProperty from a set of operation functions append, count, at, and clear.
QQmlListProperty(QObject *o, void *d, CountFunction c, AtFunction a)
Construct a readonly QQmlListProperty from a set of operation functions count and at.
QQmlListProperty(QObject *o, void *d, AppendFunction a, CountFunction c, AtFunction t, ClearFunction r, ReplaceFunction s, RemoveLastFunction p)
Construct a QQmlListProperty from a set of operation functions append, count, at, clear,...
RemoveLastFunction removeLast
QQmlListProperty()=default
\macro QML_LIST_PROPERTY_ASSIGN_BEHAVIOR_APPEND
static QQmlListReference init(const QQmlListProperty< QObject > &, QMetaType)
const QMetaObject * elementType()
QPointer< QObject > object
QQmlListProperty< QObject > property
static QQmlListReferencePrivate * get(QQmlListReference *ref)
QQmlListReferencePrivate()
The QQmlListReference class allows the manipulation of \l QQmlListProperty properties.
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE bool isObjectCompatible(QObject *object, QQmlListReferencePrivate *d)
QQmlListIterator< T > end(QQmlListProperty< T > &list)
QQmlListIterator< T > begin(QQmlListProperty< T > &list)