diff options
Diffstat (limited to 'tests/auto/qml/qqmlxmllistmodel/data/attributes.qml')
-rw-r--r-- | tests/auto/qml/qqmlxmllistmodel/data/attributes.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlxmllistmodel/data/attributes.qml b/tests/auto/qml/qqmlxmllistmodel/data/attributes.qml new file mode 100644 index 0000000000..df44c7862b --- /dev/null +++ b/tests/auto/qml/qqmlxmllistmodel/data/attributes.qml @@ -0,0 +1,11 @@ +import QtQml.XmlListModel + +XmlListModel { + source: "attributes.xml" + query: "/Pets/Pet" + + XmlListModelRole { name: "name"; elementName: ""; attributeName: "name" } + XmlListModelRole { name: "type"; elementName: "info"; attributeName: "type" } + XmlListModelRole { name: "age"; elementName: "info"; attributeName: "age" } + XmlListModelRole { name: "size"; elementName: "info"; attributeName: "size" } +} |