diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-08-09 07:08:23 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-08-09 07:12:12 (GMT) |
commit | 0d060e71a5a03f21df5b2edbb4f6de1e928b9ada (patch) | |
tree | 09221824187365e061be72270c8e32294b7a9e85 | |
parent | db91a8849bbe9581d096aa486708b9a655fc092f (diff) | |
download | Qt-0d060e71a5a03f21df5b2edbb4f6de1e928b9ada.zip Qt-0d060e71a5a03f21df5b2edbb4f6de1e928b9ada.tar.gz Qt-0d060e71a5a03f21df5b2edbb4f6de1e928b9ada.tar.bz2 |
XmlListModel doc fixes
Task-number: QTBUG-12749
-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); |