From a63c4319163ac3ccd321959336928882cf1c9d61 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 29 Jun 2016 12:19:48 +0200 Subject: [PATCH] QmlDesigner: Fix fixResourcePaths() QML does not accept absolute paths (e.g. C:\working\something\) as urls. We need the file:/// prefix. Change-Id: I9df74cd9c0e730fba056af971751f8eb88cdb536 Reviewed-by: Tim Jenssen --- .../qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp index 0fe7f5d2288..15d2aa5dafb 100644 --- a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp +++ b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp @@ -126,7 +126,7 @@ QVariant fixResourcePaths(const QVariant &value) if (QFileInfo(fixedPath).exists()) { fixedPath.replace(QLatin1String("//"), QLatin1String("/")); fixedPath.replace(QLatin1Char('\\'), QLatin1Char('/')); - return fixedPath; + return QUrl::fromLocalFile(fixedPath); } } }