summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-01-13 02:48:18 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-01-13 03:23:31 (GMT)
commit8f1fb137cb47951dc67409372a6763ddb17d65ca (patch)
tree79b09b50cad4d200e33bed9b45c034bdebab0027 /tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
parent05adc294d063171d9d0accf819826684813d396a (diff)
downloadQt-8f1fb137cb47951dc67409372a6763ddb17d65ca.zip
Qt-8f1fb137cb47951dc67409372a6763ddb17d65ca.tar.gz
Qt-8f1fb137cb47951dc67409372a6763ddb17d65ca.tar.bz2
Fix tests after 05adc294d063171d9d0accf819826684813d396a
Diffstat (limited to 'tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp')
-rw-r--r--tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp b/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
index 8dcfc11..63d8274 100644
--- a/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
+++ b/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
@@ -900,7 +900,8 @@ void tst_qmlmetaproperty::write()
void tst_qmlmetaproperty::writeObjectToList()
{
- QmlComponent containerComponent(&engine, "import Test 1.0\nMyContainer { children: MyQmlObject {} }", QUrl());
+ QmlComponent containerComponent(&engine);
+ containerComponent.setData("import Test 1.0\nMyContainer { children: MyQmlObject {} }", QUrl());
MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create());
QVERIFY(container != 0);
QVERIFY(container->children()->size() == 1);
@@ -915,7 +916,8 @@ void tst_qmlmetaproperty::writeObjectToList()
Q_DECLARE_METATYPE(QList<QObject *>);
void tst_qmlmetaproperty::writeListToList()
{
- QmlComponent containerComponent(&engine, "import Test 1.0\nMyContainer { children: MyQmlObject {} }", QUrl());
+ QmlComponent containerComponent(&engine);
+ containerComponent.setData("import Test 1.0\nMyContainer { children: MyQmlObject {} }", QUrl());
MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create());
QVERIFY(container != 0);
QVERIFY(container->children()->size() == 1);
@@ -935,7 +937,8 @@ void tst_qmlmetaproperty::writeListToList()
void tst_qmlmetaproperty::writeObjectToQmlList()
{
- QmlComponent containerComponent(&engine, "import Test 1.0\nMyContainer { qmlChildren: MyQmlObject {} }", QUrl());
+ QmlComponent containerComponent(&engine);
+ containerComponent.setData("import Test 1.0\nMyContainer { qmlChildren: MyQmlObject {} }", QUrl());
MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create());
QVERIFY(container != 0);
QVERIFY(container->qmlChildren()->size() == 1);