diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-02-08 03:51:58 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-02-08 03:51:58 (GMT) |
commit | 8569659ae74091d174fbf55ea3b4897b5a8f477d (patch) | |
tree | a9761db66717eb3b8068a67e0dd5a4b3626a3622 /tests/auto/declarative/qmllistmodel | |
parent | ac84b4382c4ba5c81ad48c6774ce0dda74cfd83f (diff) | |
download | Qt-8569659ae74091d174fbf55ea3b4897b5a8f477d.zip Qt-8569659ae74091d174fbf55ea3b4897b5a8f477d.tar.gz Qt-8569659ae74091d174fbf55ea3b4897b5a8f477d.tar.bz2 |
Use QUrl::fromLocalFile() instead of "file://" (i.e. only 2 slashes).
Was causing some test failures on Windows.
Diffstat (limited to 'tests/auto/declarative/qmllistmodel')
-rw-r--r-- | tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp index a36541e..1b05c0a 100644 --- a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp +++ b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp @@ -66,7 +66,7 @@ void tst_QmlListModel::static_i18n() QString componentStr = "import Qt 4.6\nListModel { ListElement { prop1: \""+expect+"\" } }"; QmlEngine engine; QmlComponent component(&engine); - component.setData(componentStr.toUtf8(), QUrl("file://")); + component.setData(componentStr.toUtf8(), QUrl::fromLocalFile("")); QmlListModel *obj = qobject_cast<QmlListModel*>(component.create()); QVERIFY(obj != 0); QString prop = obj->get(0).property(QLatin1String("prop1")).toString(); @@ -96,7 +96,7 @@ void tst_QmlListModel::static_nestedElements() QmlEngine engine; QmlComponent component(&engine); - component.setData(componentStr.toUtf8(), QUrl("file://")); + component.setData(componentStr.toUtf8(), QUrl::fromLocalFile("")); QmlListModel *obj = qobject_cast<QmlListModel*>(component.create()); QVERIFY(obj != 0); |