diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-08-09 07:08:23 (GMT) |
---|---|---|
committer | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-08-09 11:49:40 (GMT) |
commit | 45f6c749ff5f1773a5a52f1b40278ad390f3ae59 (patch) | |
tree | 519518e083d3f911ca2fbf44d095e08be9dff84f /src/declarative | |
parent | 380335c8b8afd302f2f3f783163b2563ee9a122a (diff) | |
download | Qt-45f6c749ff5f1773a5a52f1b40278ad390f3ae59.zip Qt-45f6c749ff5f1773a5a52f1b40278ad390f3ae59.tar.gz Qt-45f6c749ff5f1773a5a52f1b40278ad390f3ae59.tar.bz2 |
XmlListModel doc fixes
Task-number: QTBUG-12749
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/util/qdeclarativexmllistmodel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativexmllistmodel.cpp b/src/declarative/util/qdeclarativexmllistmodel.cpp index 7c1e1fd..8bd829e 100644 --- a/src/declarative/util/qdeclarativexmllistmodel.cpp +++ b/src/declarative/util/qdeclarativexmllistmodel.cpp @@ -560,7 +560,7 @@ void QDeclarativeXmlListModelPrivate::clear_role(QDeclarativeListProperty<QDecla ListView { width: 180; height: 300 model: xmlModel - delegate: Text { text: title + " (" + pubDate + ")" } + delegate: Text { text: title + ": " + pubDate } } \endqml @@ -855,6 +855,12 @@ qreal QDeclarativeXmlListModel::progress() const return d->progress; } +/*! + \qmlmethod void XmlListModel::errorString() + + Returns a string description of the last error that occurred + if \l status is XmlListModel::Error. +*/ QString QDeclarativeXmlListModel::errorString() const { Q_D(const QDeclarativeXmlListModel); |