43 #include "private/qdeclarativelist_p.h" 44 #include "private/qdeclarativeengine_p.h" 45 #include "private/qdeclarativeproperty_p.h" 50 : propertyType(-1), refCount(1)
58 if (!prop.
object)
return rv;
63 if (listType == -1)
return rv;
139 if (!
object || !property)
return;
150 if (listType == -1)
return;
281 if (!
canAt())
return 0;
QObject * object() const
Returns the list property's object.
#define QT_END_NAMESPACE
This macro expands to.
friend class QDeclarativeListReferencePrivate
The QDeclarativeListReference class allows the manipulation of QDeclarativeListProperty properties...
bool append(QObject *) const
Appends object to the list.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
const QMetaObject * baseMetaObject() const
QDeclarativeListReferencePrivate()
The QObject class is the base class of all Qt objects.
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
bool canClear() const
Returns true if the list property can be cleared, otherwise false.
QDeclarativeListReference & operator=(const QDeclarativeListReference &)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QDeclarativeListReference init(const QDeclarativeListProperty< QObject > &, int, QDeclarativeEngine *)
int count() const
Returns the number of objects in the list, or 0 if the operation failed.
Data * property(const QScriptDeclarativeClass::Identifier &id) const
const QMetaObject * elementType
static const char * data(const QByteArray &arr)
const QMetaObject * listElementType() const
Returns the QMetaObject for the elements stored in the list property.
QDeclarativeListReference()
Constructs an invalid instance.
bool clear() const
Clears the list.
QDeclarativeListProperty< QObject > property
bool canAppend() const
Returns true if the list property can be appended to, otherwise false.
bool isValid() const
Returns true if the instance refers to a valid list property, otherwise false.
The QDeclarativeEngine class provides an environment for instantiating QML components.
static bool canConvert(const QMetaObject *from, const QMetaObject *to)
Returns true if from inherits to.
QDeclarativeListReferencePrivate * d
bool canCount() const
Returns true if the list property can be queried for its element count, otherwise false...
QDeclarativeGuard< QObject > object
QObject * at(int) const
Returns the list element at index, or 0 if the operation failed.
const QMetaObject * rawMetaObjectForType(int) const
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.
bool canAt() const
Returns true if the list property can queried by index, otherwise false.
~QDeclarativeListReference()