summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-23 23:41:17 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-23 23:41:17 (GMT)
commite26db74521e063a1513731eb14581d93a3d77481 (patch)
tree7741759f402b7b41facc88df4821f80bb40f38ea /tests/auto
parentab86990893ef1b431c555c46a1e0df7cb9e37927 (diff)
parent206b55e618945e7cfb428cfa7a7decbb3dc9f2e4 (diff)
downloadQt-e26db74521e063a1513731eb14581d93a3d77481.zip
Qt-e26db74521e063a1513731eb14581d93a3d77481.tar.gz
Qt-e26db74521e063a1513731eb14581d93a3d77481.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Diffstat (limited to 'tests/auto')
-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;
+ }
+}
+