summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-23 23:42:24 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-23 23:42:24 (GMT)
commit2f1372b7a77d9e24d4a6f6925fe876b4e3a1b01a (patch)
treefc82e1006cc86505c7079a05553c3c112b44f646 /tests/auto/declarative
parent55fff3383b7fbac972a96c62345bc898c99eafc0 (diff)
downloadQt-2f1372b7a77d9e24d4a6f6925fe876b4e3a1b01a.zip
Qt-2f1372b7a77d9e24d4a6f6925fe876b4e3a1b01a.tar.gz
Qt-2f1372b7a77d9e24d4a6f6925fe876b4e3a1b01a.tar.bz2
Missing test data file.
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml b/tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml
new file mode 100644
index 0000000..b90e57e
--- /dev/null
+++ b/tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+
+XmlListModel {
+ query: "/data/item"
+ XmlRole { id: nameRole; name: "name"; query: "name/string()"; isKey: true }
+ XmlRole { name: "age"; query: "age/number()"; isKey: true }
+ XmlRole { name: "sport"; query: "sport/string()" }
+
+ function disableNameKey() {
+ nameRole.isKey = false;
+ }
+}
+