diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-23 23:41:17 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-23 23:41:17 (GMT) |
commit | e26db74521e063a1513731eb14581d93a3d77481 (patch) | |
tree | 7741759f402b7b41facc88df4821f80bb40f38ea /tests/auto/declarative | |
parent | ab86990893ef1b431c555c46a1e0df7cb9e37927 (diff) | |
parent | 206b55e618945e7cfb428cfa7a7decbb3dc9f2e4 (diff) | |
download | Qt-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/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; + } +} + |