From 005a475a2d4dcc16c2a84a3d0f4b11ed44abe205 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Mon, 27 Jan 2020 06:52:10 +0100 Subject: Doc: Fix regression caused by moving files around (leave no file behind) When xmllistmodel moved to xmlpatterns, an xml file quoted from in docs was unintentionally left behind. This adds the missing file, and corrects the file to quote from (which had since been adjusted to quote from the wrong file). Fixes: QTBUG-77176 Change-Id: I9cc871cf58dd33ce922fa0f6c5d86800210208c5 Reviewed-by: Leena Miettinen --- src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 2 +- src/xmlpatterns/doc/snippets/qml/xmlrole.xml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/xmlpatterns/doc/snippets/qml/xmlrole.xml diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index 053e16a..ab15a3c 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -132,7 +132,7 @@ typedef QPair 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 diff --git a/src/xmlpatterns/doc/snippets/qml/xmlrole.xml b/src/xmlpatterns/doc/snippets/qml/xmlrole.xml new file mode 100644 index 0000000..70280e0 --- /dev/null +++ b/src/xmlpatterns/doc/snippets/qml/xmlrole.xml @@ -0,0 +1,20 @@ + + + + Qt 5 Cadaques + 2014 + Juergen Bocklage-Ryannel + Johan Thelin + + + C++ GUI Programming with Qt 4 + 2006 + Jasmin Blanchette + Mark Summerfield + + + Programming with Qt + 2002 + Matthias Kalle Dalheimer + + -- cgit v1.2.1