summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-08 03:51:58 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-08 03:51:58 (GMT)
commit8569659ae74091d174fbf55ea3b4897b5a8f477d (patch)
treea9761db66717eb3b8068a67e0dd5a4b3626a3622 /tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp
parentac84b4382c4ba5c81ad48c6774ce0dda74cfd83f (diff)
downloadQt-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/qmlconnection/tst_qmlconnection.cpp')
-rw-r--r--tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp b/tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp
index 3d9ee46..b3c04f1 100644
--- a/tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp
+++ b/tests/auto/declarative/qmlconnection/tst_qmlconnection.cpp
@@ -70,7 +70,7 @@ tst_qmlconnection::tst_qmlconnection()
void tst_qmlconnection::defaultValues()
{
QmlEngine engine;
- QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/test-connection3.qml"));
+ QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/test-connection3.qml"));
QmlConnection *item = qobject_cast<QmlConnection*>(c.create());
QVERIFY(item != 0);
@@ -84,7 +84,7 @@ void tst_qmlconnection::defaultValues()
void tst_qmlconnection::properties()
{
QmlEngine engine;
- QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/test-connection2.qml"));
+ QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/test-connection2.qml"));
QmlConnection *item = qobject_cast<QmlConnection*>(c.create());
QVERIFY(item != 0);
@@ -100,7 +100,7 @@ void tst_qmlconnection::properties()
void tst_qmlconnection::connection()
{
QmlEngine engine;
- QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/test-connection.qml"));
+ QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/test-connection.qml"));
QmlGraphicsItem *item = qobject_cast<QmlGraphicsItem*>(c.create());
QVERIFY(item != 0);
@@ -117,7 +117,7 @@ void tst_qmlconnection::connection()
void tst_qmlconnection::trimming()
{
QmlEngine engine;
- QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/trimming.qml"));
+ QmlComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/trimming.qml"));
QmlGraphicsItem *item = qobject_cast<QmlGraphicsItem*>(c.create());
QVERIFY(item != 0);