aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlxmllistmodel/data/recipes.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlxmllistmodel/data/recipes.qml')
-rw-r--r--tests/auto/qml/qqmlxmllistmodel/data/recipes.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlxmllistmodel/data/recipes.qml b/tests/auto/qml/qqmlxmllistmodel/data/recipes.qml
new file mode 100644
index 0000000000..18cd8c301a
--- /dev/null
+++ b/tests/auto/qml/qqmlxmllistmodel/data/recipes.qml
@@ -0,0 +1,10 @@
+import QtQml.XmlListModel
+
+XmlListModel {
+ source: "recipes.xml"
+ query: "/recipes/recipe"
+ XmlListModelRole { name: "title"; elementName: ""; attributeName: "title" }
+ XmlListModelRole { name: "picture"; elementName: "picture" }
+ XmlListModelRole { name: "ingredients"; elementName: "ingredients" }
+ XmlListModelRole { name: "preparation"; elementName: "method" }
+}