From 3f7951c04ef474f81eda2134b67c4e4020fe39d1 Mon Sep 17 00:00:00 2001 From: Andrew Knight Date: Tue, 18 Mar 2014 00:08:49 +0200 Subject: Use QUrl::toLocalFile() when decoding a string URL Some percent-decoded characters may still be present in the string URL, so it is best to use QUrl::toLocalFile() to process the string properly. This also makes some drive handling "magic" obselete as QUrl already handles this. This fixes an issue whereby QML apps residing in local paths requiring percent-encoded characters (or which import local file URLs with percent-encoded characters) would fail to load, as the path was passed to the file system engine without fully decoding the URL. Change-Id: I8ec2b06f0661e0ac7cc9df79d35ec5cee211f672 Reviewed-by: Simon Hausmann --- tests/auto/qml/qqmllanguage/data/{subdir}/Test.qml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/auto/qml/qqmllanguage/data/{subdir}/Test.qml (limited to 'tests/auto/qml/qqmllanguage/data/{subdir}') diff --git a/tests/auto/qml/qqmllanguage/data/{subdir}/Test.qml b/tests/auto/qml/qqmllanguage/data/{subdir}/Test.qml new file mode 100644 index 0000000000..f789a905f2 --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/{subdir}/Test.qml @@ -0,0 +1,2 @@ +import QtQuick 2.0 +Rectangle { } -- cgit v1.2.3