Qt 4.8
|
The QDeclarativeDomList class represents a list of values assigned to a QML property. More...
#include <qdeclarativedom_p.h>
Public Functions | |
QList< int > | commaPositions () const |
Returns a list of positions of the commas in the QML file. More... | |
int | length () const |
Returns the length in the input data from where the list started upto the end of it, or 0 if the property is invalid. More... | |
QDeclarativeDomList & | operator= (const QDeclarativeDomList &) |
Assign other to this QDeclarativeDomList. More... | |
int | position () const |
Returns the position in the input data where the list started, or -1 if the property is invalid. More... | |
QDeclarativeDomList () | |
Construct an empty QDeclarativeDomList. More... | |
QDeclarativeDomList (const QDeclarativeDomList &) | |
Create a copy of other QDeclarativeDomList. More... | |
QList< QDeclarativeDomValue > | values () const |
Returns the list of QDeclarativeDomValue's. More... | |
~QDeclarativeDomList () | |
Destroy the QDeclarativeDomList. More... | |
Properties | |
QSharedDataPointer< QDeclarativeDomValuePrivate > | d |
Friends | |
class | QDeclarativeDomValue |
The QDeclarativeDomList class represents a list of values assigned to a QML property.
Lists of values can be assigned to properties. For example, the following example assigns multiple objects to Item's "children" property
Lists can also be implicitly created by assigning multiple QDeclarativeDomValueValueSource{value sources} or constants to a property.
Definition at line 317 of file qdeclarativedom_p.h.
QDeclarativeDomList::QDeclarativeDomList | ( | ) |
Construct an empty QDeclarativeDomList.
Definition at line 1609 of file qdeclarativedom.cpp.
QDeclarativeDomList::QDeclarativeDomList | ( | const QDeclarativeDomList & | other | ) |
Create a copy of other QDeclarativeDomList.
Definition at line 1616 of file qdeclarativedom.cpp.
QDeclarativeDomList::~QDeclarativeDomList | ( | ) |
QList< int > QDeclarativeDomList::commaPositions | ( | ) | const |
Returns a list of positions of the commas in the QML file.
Definition at line 1690 of file qdeclarativedom.cpp.
int QDeclarativeDomList::length | ( | ) | const |
Returns the length in the input data from where the list started upto the end of it, or 0 if the property is invalid.
Definition at line 1679 of file qdeclarativedom.cpp.
QDeclarativeDomList & QDeclarativeDomList::operator= | ( | const QDeclarativeDomList & | other | ) |
Assign other to this QDeclarativeDomList.
Definition at line 1631 of file qdeclarativedom.cpp.
int QDeclarativeDomList::position | ( | ) | const |
Returns the position in the input data where the list started, or -1 if the property is invalid.
Definition at line 1667 of file qdeclarativedom.cpp.
QList< QDeclarativeDomValue > QDeclarativeDomList::values | ( | ) | const |
Returns the list of QDeclarativeDomValue's.
Definition at line 1640 of file qdeclarativedom.cpp.
|
friend |
Definition at line 333 of file qdeclarativedom_p.h.
|
private |
Definition at line 334 of file qdeclarativedom_p.h.
Referenced by commaPositions(), length(), operator=(), position(), QDeclarativeDomValue::toList(), and values().