summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlpropertymap
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/qmlpropertymap
parent05adc294d063171d9d0accf819826684813d396a (diff)
downloadQt-8f1fb137cb47951dc67409372a6763ddb17d65ca.zip
Qt-8f1fb137cb47951dc67409372a6763ddb17d65ca.tar.gz
Qt-8f1fb137cb47951dc67409372a6763ddb17d65ca.tar.bz2
Fix tests after 05adc294d063171d9d0accf819826684813d396a
Diffstat (limited to 'tests/auto/declarative/qmlpropertymap')
-rw-r--r--tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp b/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp
index fe2658c..ba3bdd2 100644
--- a/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp
+++ b/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp
@@ -135,7 +135,8 @@ void tst_QmlPropertyMap::changed()
QmlEngine engine;
QmlContext *ctxt = engine.rootContext();
ctxt->setContextProperty(QLatin1String("testdata"), &map);
- QmlComponent component(&engine, "import Qt 4.6\nText { text: { testdata.key1 = 'Hello World'; 'X' } }",
+ QmlComponent component(&engine);
+ component.setData("import Qt 4.6\nText { text: { testdata.key1 = 'Hello World'; 'X' } }",
QUrl("file://"));
QVERIFY(component.isReady());
QmlGraphicsText *txt = qobject_cast<QmlGraphicsText*>(component.create());