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/qmlgraphicsflickable | |
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/qmlgraphicsflickable')
-rw-r--r-- | tests/auto/declarative/qmlgraphicsflickable/tst_qmlgraphicsflickable.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/declarative/qmlgraphicsflickable/tst_qmlgraphicsflickable.cpp b/tests/auto/declarative/qmlgraphicsflickable/tst_qmlgraphicsflickable.cpp index ddeb584..c0ffeb7 100644 --- a/tests/auto/declarative/qmlgraphicsflickable/tst_qmlgraphicsflickable.cpp +++ b/tests/auto/declarative/qmlgraphicsflickable/tst_qmlgraphicsflickable.cpp @@ -68,7 +68,7 @@ tst_qmlgraphicsflickable::tst_qmlgraphicsflickable() void tst_qmlgraphicsflickable::create() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/flickable01.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/flickable01.qml")); QmlGraphicsFlickable *obj = qobject_cast<QmlGraphicsFlickable*>(c.create()); QVERIFY(obj != 0); @@ -94,7 +94,7 @@ void tst_qmlgraphicsflickable::create() void tst_qmlgraphicsflickable::horizontalViewportSize() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/flickable02.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/flickable02.qml")); QmlGraphicsFlickable *obj = qobject_cast<QmlGraphicsFlickable*>(c.create()); QVERIFY(obj != 0); @@ -111,7 +111,7 @@ void tst_qmlgraphicsflickable::horizontalViewportSize() void tst_qmlgraphicsflickable::verticalViewportSize() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/flickable03.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/flickable03.qml")); QmlGraphicsFlickable *obj = qobject_cast<QmlGraphicsFlickable*>(c.create()); QVERIFY(obj != 0); @@ -128,7 +128,7 @@ void tst_qmlgraphicsflickable::verticalViewportSize() void tst_qmlgraphicsflickable::properties() { QmlEngine engine; - QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/flickable04.qml")); + QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/flickable04.qml")); QmlGraphicsFlickable *obj = qobject_cast<QmlGraphicsFlickable*>(c.create()); QVERIFY(obj != 0); |