diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-04-16 04:54:19 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-04-16 05:09:29 (GMT) |
commit | ba3f33401c97c5517abe19f4ea6f6307e4374c6c (patch) | |
tree | 0f5b75c49676e84bd48ff1ebeaae37662cf67634 /src/declarative/qml/qdeclarativelist.cpp | |
parent | 8693ed5a3fd0814802613c5a8a78b6802751bd0f (diff) | |
download | Qt-ba3f33401c97c5517abe19f4ea6f6307e4374c6c.zip Qt-ba3f33401c97c5517abe19f4ea6f6307e4374c6c.tar.gz Qt-ba3f33401c97c5517abe19f4ea6f6307e4374c6c.tar.bz2 |
More class documentation fixes for declarative.
Diffstat (limited to 'src/declarative/qml/qdeclarativelist.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativelist.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/declarative/qml/qdeclarativelist.cpp b/src/declarative/qml/qdeclarativelist.cpp index 45b8cd7..31ef4c2 100644 --- a/src/declarative/qml/qdeclarativelist.cpp +++ b/src/declarative/qml/qdeclarativelist.cpp @@ -87,9 +87,10 @@ void QDeclarativeListReferencePrivate::release() /*! \class QDeclarativeListReference +\since 4.7 \brief The QDeclarativeListReference class allows the manipulation of QDeclarativeListProperty properties. -QDeclarativeListReference allows programs to read from, and assign values to a QML list property in a +QDeclarativeListReference allows C++ programs to read from, and assign values to a QML list property in a simple and type safe way. A QDeclarativeListReference can be created by passing an object and property name or through a QDeclarativeProperty instance. These two are equivalant: @@ -304,6 +305,7 @@ int QDeclarativeListReference::count() const /*! \class QDeclarativeListProperty +\since 4.7 \brief The QDeclarativeListProperty class allows applications to explose list-like properties to QML. @@ -313,10 +315,10 @@ The use of a list property from QML looks like this: \code FruitBasket { fruit: [ - Apple {}, - Orange{}, - Banana {} - ] + Apple {}, + Orange{}, + Banana{} + ] } \endcode @@ -336,6 +338,9 @@ Q_PROPERTY(QDeclarativeListProperty<Fruit> fruit READ fruit); QML list properties are typesafe - in this case \c {Fruit} is a QObject type that \c {Apple}, \c {Orange} and \c {Banana} all derive from. + +\note QDeclarativeListProperty can only be used for lists of QObject-derived object pointers. + */ /*! |