Fix support for JS imports in QML files in the new compiler
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 30 Sep 2013 01:28:47 +0000 (03:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Sep 2013 16:21:32 +0000 (18:21 +0200)
commit62ee548d5fb8cbcbc4f126f761f125891dd79aed
tree79628c29245320ca3c17d7647c72653d2e308ba1
parentc48d727e25f0a07d709a81765af6196bc0ddb4c5
Fix support for JS imports in QML files in the new compiler

Remove the v4 value initialization for imported scripts code out of the VME
(the method didn't even need any members of the VME class) and into ScriptData,
for re-use on the QmlObjectCreator side.

Also add the script index setup for the import cache (used by qml context
wrapper) to the type loader.

Change-Id: Idc3953a48f6fb66d008008e88a2b9b556c775537
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp
src/qml/qml/qqmltypeloader.cpp
src/qml/qml/qqmltypeloader_p.h
src/qml/qml/qqmlvme.cpp
src/qml/qml/qqmlvme_p.h