diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 23:42:54 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 23:42:54 (GMT) |
commit | 1f45364d2c2d1a92eb7a3b36e8bb92f963c9bd1e (patch) | |
tree | 706dfbc43c7346b3f07eb78aa0052e7fe611363c /tests/auto/declarative | |
parent | 216a246daaf3e0b095c4e21efb738b0c7a084a32 (diff) | |
parent | 206b55e618945e7cfb428cfa7a7decbb3dc9f2e4 (diff) | |
download | Qt-1f45364d2c2d1a92eb7a3b36e8bb92f963c9bd1e.zip Qt-1f45364d2c2d1a92eb7a3b36e8bb92f963c9bd1e.tar.gz Qt-1f45364d2c2d1a92eb7a3b36e8bb92f963c9bd1e.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml | 13 |
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; + } +} + |