[new compiler] Fix propagation of imported scripts for anonymous components
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 4 Feb 2014 14:46:48 +0000 (15:46 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 5 Feb 2014 18:48:26 +0000 (19:48 +0100)
commit37019a96db01b99a76b67b9e655bc457e8edb5a1
treea8979cda9124b77ad28211750612e2b31f4ad344
parent1845ae01929cdaf6aa50ae096fe5c249f14b1f18
[new compiler] Fix propagation of imported scripts for anonymous components

We must take the imported scripts from the creation context. Fixes various
errors in Qt Quick Controls.

Change-Id: I336d8ffa0537cefd4eeac15f98bbf1b0a5c784af
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlcomponent.cpp
src/qml/qml/qqmlobjectcreator.cpp
src/qml/qml/qqmlobjectcreator_p.h
src/qml/types/qqmldelegatemodel.cpp
tests/auto/qml/qqmlecmascript/data/jsimport/creationContext.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp