diff options
author | Topi Reinio <topi.reinio@digia.com> | 2014-03-17 09:37:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-18 12:00:58 +0100 |
commit | b456fb1a11302557ac51ac47c635ba993d1653a3 (patch) | |
tree | 76417df2d7ec3cd5e108707f5b2fc193def505a2 /src/imports | |
parent | 17643c829d15d43a7d5e2955089595198903775c (diff) |
Doc: Reintroduce missing sample XML file for XMLRole documentation
XMLRole documentation talks about sample XML content, but
erraenously quoted a QML file instead.
This change brings back the sample file from Qt 4.8, and
updates it to cover the use of boolean role.
Change-Id: Id71550fab15c761320551f6583a138cd7cc88376
Reviewed-by: Bea Lam <bea.lam@jollamobile.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index 0b9be3105b..3c6967fd69 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -132,13 +132,17 @@ typedef QPair<int, int> QQuickXmlListRange; For example, if there is an XML document like this: - \quotefile qml/xmlrole.qml + \quotefile qml/xmlrole.xml Here are some valid XPath expressions for XmlRole queries on this document: \snippet qml/xmlrole.qml 0 \dots 4 \snippet qml/xmlrole.qml 1 + Accessing the model data for the above roles from a delegate: + + \snippet qml/xmlrole.qml 2 + See the \l{http://www.w3.org/TR/xpath20/}{W3C XPath 2.0 specification} for more information. */ |