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/qmleasefollow | |
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/qmleasefollow')
-rw-r--r-- | tests/auto/declarative/qmleasefollow/tst_qmleasefollow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmleasefollow/tst_qmleasefollow.cpp b/tests/auto/declarative/qmleasefollow/tst_qmleasefollow.cpp index 2e2050e..384ce25b 100644 --- a/tests/auto/declarative/qmleasefollow/tst_qmleasefollow.cpp +++ b/tests/auto/declarative/qmleasefollow/tst_qmleasefollow.cpp @@ -67,7 +67,7 @@ tst_qmleasefollow::tst_qmleasefollow() void tst_qmleasefollow::defaultValues() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/easefollow1.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/easefollow1.qml")); QmlEaseFollow *obj = qobject_cast<QmlEaseFollow*>(c.create()); QVERIFY(obj != 0); @@ -85,7 +85,7 @@ void tst_qmleasefollow::defaultValues() void tst_qmleasefollow::values() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/easefollow2.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/easefollow2.qml")); QmlEaseFollow *obj = qobject_cast<QmlEaseFollow*>(c.create()); QVERIFY(obj != 0); @@ -103,7 +103,7 @@ void tst_qmleasefollow::values() void tst_qmleasefollow::disabled() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/easefollow3.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/easefollow3.qml")); QmlEaseFollow *obj = qobject_cast<QmlEaseFollow*>(c.create()); QVERIFY(obj != 0); |