Fix loading imports from Qt resource.
authorAaron McCarthy <aaron.mccarthy@nokia.com>
Fri, 2 Dec 2011 03:35:07 +0000 (13:35 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Dec 2011 09:13:00 +0000 (10:13 +0100)
commit18d1e8c0482f70cd7b978169e7b8f7ab137bfc03
tree70e37879cc5a4e7b93caee064be2b4bbdc49f2cf
parent0218e13ea98cb54629ce932fdb9adf2867838d26
Fix loading imports from Qt resource.

Loading an import from a Qt resource fails because the url of the module
was erroneously being converted to a file:// url.  This results in a url
that looks like "file://:/MyModule".  Fixed by adding a check to see if
the module path is a resource path (starts with :) and if so constructs
a qrc:// url instead.

Change-Id: I41a24a93d085baaf68d58c4e991d6ba2aff5e7ff
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/qml/qdeclarativeimport.cpp