summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmllistmodel
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/qmllistmodel
parent05adc294d063171d9d0accf819826684813d396a (diff)
downloadQt-8f1fb137cb47951dc67409372a6763ddb17d65ca.zip
Qt-8f1fb137cb47951dc67409372a6763ddb17d65ca.tar.gz
Qt-8f1fb137cb47951dc67409372a6763ddb17d65ca.tar.bz2
Fix tests after 05adc294d063171d9d0accf819826684813d396a
Diffstat (limited to 'tests/auto/declarative/qmllistmodel')
-rw-r--r--tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp
index 0d09b54..0986d20 100644
--- a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp
+++ b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp
@@ -63,7 +63,8 @@ void tst_QmlListModel::static_i18n()
QString expect = QString::fromUtf8("na\303\257ve");
QString componentStr = "import Qt 4.6\nListModel { ListElement { prop1: \""+expect+"\" } }";
QmlEngine engine;
- QmlComponent component(&engine, componentStr.toUtf8(), QUrl("file://"));
+ QmlComponent component(&engine);
+ component.setData(componentStr.toUtf8(), QUrl("file://"));
QmlListModel *obj = qobject_cast<QmlListModel*>(component.create());
QVERIFY(obj != 0);
QString prop = obj->get(0).property(QLatin1String("prop1")).toString();
@@ -208,8 +209,9 @@ void tst_QmlListModel::error()
QFETCH(QString, error);
QmlEngine engine;
- QmlComponent component(&engine, qml.toUtf8(),
- QUrl::fromLocalFile(QString("dummy.qml")));
+ QmlComponent component(&engine);
+ component.setData(qml.toUtf8(),
+ QUrl::fromLocalFile(QString("dummy.qml")));
if (error.isEmpty()) {
QVERIFY(!component.isError());
} else {