Fix parts of workerscript
authorLars Knoll <lars.knoll@digia.com>
Tue, 18 Jun 2013 10:48:08 +0000 (12:48 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Jun 2013 11:49:18 +0000 (13:49 +0200)
commit1075939a2b040aec3f63a20f27e4f9e502eabc97
tree5e2530b05461c482daaeb16fcd2b59aec8d71598
parenteec01627c7fcf9b2b25121a9c72b46d9876abc66
Fix parts of workerscript

The worker script creates a special QmlContextWrapper
that doesn't contain many things found in the main thread.
However we still need to be able to cast to it, so it
should be the same class as the regular context wrapper.

Fixes parts of the worker script auto tests.

Change-Id: I3697b2b0080dc4ac967eb447e2efd0f28fbab465
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/qml/qqmlcontextwrapper_p.h
src/qml/qml/v4/qv4include.cpp
src/qml/types/qquickworkerscript.cpp