summaryrefslogtreecommitdiff
path: root/tests/auto/qquickxmllistmodel/data/recipes.qml
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2018-06-16 21:45:35 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2018-08-28 13:40:15 +0000
commit8c6e24329ecd65f364654b1ca2b6a273f0826a8b (patch)
tree5900084d1c682616e35842b2f5dd61a06f87b4af /tests/auto/qquickxmllistmodel/data/recipes.qml
parentb9b941945dc63a48652576c806e10dfeb15005e9 (diff)
downloadqtxmlpatterns-8c6e24329ecd65f364654b1ca2b6a273f0826a8b.tar.gz
Move xmllistmodel to xmlpatterns
Change-Id: Ida2a23ae93b8625638397ee7ae10f32b9dcd2043 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qquickxmllistmodel/data/recipes.qml')
-rw-r--r--tests/auto/qquickxmllistmodel/data/recipes.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qquickxmllistmodel/data/recipes.qml b/tests/auto/qquickxmllistmodel/data/recipes.qml
new file mode 100644
index 0000000..dc609e9
--- /dev/null
+++ b/tests/auto/qquickxmllistmodel/data/recipes.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+import QtQuick.XmlListModel 2.0
+
+XmlListModel {
+ source: "recipes.xml"
+ query: "/recipes/recipe"
+ XmlRole { name: "title"; query: "@title/string()" }
+ XmlRole { name: "picture"; query: "picture/string()" }
+ XmlRole { name: "ingredients"; query: "ingredients/string()" }
+ XmlRole { name: "preparation"; query: "method/string()" }
+}