diff options
Diffstat (limited to 'tests/auto/declarative/qmlsystempalette/tst_qmlsystempalette.cpp')
-rw-r--r-- | tests/auto/declarative/qmlsystempalette/tst_qmlsystempalette.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/declarative/qmlsystempalette/tst_qmlsystempalette.cpp b/tests/auto/declarative/qmlsystempalette/tst_qmlsystempalette.cpp index 12e3a70..7da7f68 100644 --- a/tests/auto/declarative/qmlsystempalette/tst_qmlsystempalette.cpp +++ b/tests/auto/declarative/qmlsystempalette/tst_qmlsystempalette.cpp @@ -72,7 +72,7 @@ void tst_qmlsystempalette::activePalette() { QString componentStr = "import Qt 4.6\nSystemPalette { }"; QmlComponent component(&engine); - component.setData(componentStr.toLatin1(), QUrl("file://")); + component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); QmlSystemPalette *object = qobject_cast<QmlSystemPalette*>(component.create()); QVERIFY(object != 0); @@ -101,7 +101,7 @@ void tst_qmlsystempalette::inactivePalette() { QString componentStr = "import Qt 4.6\nSystemPalette { colorGroup: SystemPalette.Inactive }"; QmlComponent component(&engine); - component.setData(componentStr.toLatin1(), QUrl("file://")); + component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); QmlSystemPalette *object = qobject_cast<QmlSystemPalette*>(component.create()); QVERIFY(object != 0); @@ -131,7 +131,7 @@ void tst_qmlsystempalette::disabledPalette() { QString componentStr = "import Qt 4.6\nSystemPalette { colorGroup: SystemPalette.Disabled }"; QmlComponent component(&engine); - component.setData(componentStr.toLatin1(), QUrl("file://")); + component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); QmlSystemPalette *object = qobject_cast<QmlSystemPalette*>(component.create()); QVERIFY(object != 0); @@ -161,7 +161,7 @@ void tst_qmlsystempalette::paletteChanged() { QString componentStr = "import Qt 4.6\nSystemPalette { }"; QmlComponent component(&engine); - component.setData(componentStr.toLatin1(), QUrl("file://")); + component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); QmlSystemPalette *object = qobject_cast<QmlSystemPalette*>(component.create()); QVERIFY(object != 0); |