Fix qqmlvaluetypewrapper auto-tests
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 20 Jun 2013 09:32:45 +0000 (11:32 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 20 Jun 2013 19:57:28 +0000 (21:57 +0200)
commit343978ce543b4b901bb009f0c5ebabb7563fe98b
treee1c97975faf705786fbe8ce644fc0bf83c127e12
parent0117641a5bfb8f53ff80b291197db5426f689d0d
Fix qqmlvaluetypewrapper auto-tests

QQmlValueTypeWrapper stores its prototype in a global variable
(PersistentValue), which doesn't work when using multiple engines. Instead
this patch introduces the QML extensions structure to hold things like
prototypes for type extensions to JS that are specific to QML.

Change-Id: I41a71029edb6ce895eb80db7aa0809aab86b31db
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlvaluetypewrapper.cpp
src/qml/qml/qqmlvaluetypewrapper_p.h
src/qml/qml/v4/qv4engine.cpp
src/qml/qml/v4/qv4engine_p.h
src/qml/qml/v4/qv4qmlextensions.cpp [new file with mode: 0644]
src/qml/qml/v4/qv4qmlextensions_p.h [new file with mode: 0644]
src/qml/qml/v4/v4.pri