diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-08 05:04:29 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-08 05:04:29 (GMT) |
commit | df7dce62777fb953d26fcd30d6f56dc16c945ac0 (patch) | |
tree | 79047a96a5b699d55c117719b757e99d593ca3d0 /tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp | |
parent | 309de75f1e0ce2e85b2f58e34b876f902c9d0292 (diff) | |
download | Qt-df7dce62777fb953d26fcd30d6f56dc16c945ac0.zip Qt-df7dce62777fb953d26fcd30d6f56dc16c945ac0.tar.gz Qt-df7dce62777fb953d26fcd30d6f56dc16c945ac0.tar.bz2 |
Autotest format conversion.
Diffstat (limited to 'tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp')
-rw-r--r-- | tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp b/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp index 1163dda..e35a006 100644 --- a/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp +++ b/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp @@ -52,7 +52,7 @@ private: void tst_QmlMetaProperty::writeObjectToList() { - QmlComponent containerComponent(&engine, "<MyContainer><children><MyQmlObject/></children></MyContainer>"); + QmlComponent containerComponent(&engine, "MyContainer { children: MyQmlObject {} }"); MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create()); QVERIFY(container != 0); QVERIFY(container->children()->size() == 1); @@ -67,7 +67,7 @@ void tst_QmlMetaProperty::writeObjectToList() Q_DECLARE_METATYPE(QList<QObject *>); void tst_QmlMetaProperty::writeListToList() { - QmlComponent containerComponent(&engine, "<MyContainer><children><MyQmlObject/></children></MyContainer>"); + QmlComponent containerComponent(&engine, "MyContainer { children: MyQmlObject {} }"); MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create()); QVERIFY(container != 0); QVERIFY(container->children()->size() == 1); @@ -87,7 +87,7 @@ void tst_QmlMetaProperty::writeListToList() void tst_QmlMetaProperty::writeObjectToQmlList() { - QmlComponent containerComponent(&engine, "<MyContainer><qmlChildren><MyQmlObject/></qmlChildren></MyContainer>"); + QmlComponent containerComponent(&engine, "MyContainer { qmlChildren: MyQmlObject {} }"); MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create()); QVERIFY(container != 0); QVERIFY(container->qmlChildren()->size() == 1); |