From 2f1372b7a77d9e24d4a6f6925fe876b4e3a1b01a Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Wed, 24 Feb 2010 09:42:24 +1000 Subject: Missing test data file. --- tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/auto/declarative/qmlxmllistmodel/data/roleKeys.qml 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; + } +} + -- cgit v0.12