diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-06-16 21:45:35 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-08-28 13:40:15 +0000 |
commit | 8c6e24329ecd65f364654b1ca2b6a273f0826a8b (patch) | |
tree | 5900084d1c682616e35842b2f5dd61a06f87b4af /tests/auto/qquickxmllistmodel/data/roleErrors.qml | |
parent | b9b941945dc63a48652576c806e10dfeb15005e9 (diff) | |
download | qtxmlpatterns-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/roleErrors.qml')
-rw-r--r-- | tests/auto/qquickxmllistmodel/data/roleErrors.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qquickxmllistmodel/data/roleErrors.qml b/tests/auto/qquickxmllistmodel/data/roleErrors.qml new file mode 100644 index 0000000..91664b6 --- /dev/null +++ b/tests/auto/qquickxmllistmodel/data/roleErrors.qml @@ -0,0 +1,11 @@ +import QtQuick 2.0 +import QtQuick.XmlListModel 2.0 + +XmlListModel { + source: "model.xml" + query: "/Pets/Pet" + XmlRole { name: "name"; query: "/name/string()" } //starts with '/' + XmlRole { name: "type"; query: "type" } //no type + XmlRole { name: "age"; query: "age/" } //ends with '/' + XmlRole { name: "size"; query: "size/number()" } //wrong type +} |