diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-13 09:19:48 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-13 09:25:57 (GMT) |
commit | 25e76959da84fe4c40f98cf32b7b8c69e5087681 (patch) | |
tree | 32093b3c9357c09e1a8efe49eb99bd388a602c26 /examples/script/qstetrix | |
parent | a267b590d17d1e7088acf44a8ba7e307f898ccb1 (diff) | |
download | Qt-25e76959da84fe4c40f98cf32b7b8c69e5087681.zip Qt-25e76959da84fe4c40f98cf32b7b8c69e5087681.tar.gz Qt-25e76959da84fe4c40f98cf32b7b8c69e5087681.tar.bz2 |
add some world-class hacks to JSC to make QtScript work
QtScript needs the VM to create script objects of type
QScriptObject, not JSC::Object. This is so that the class of
the object can be changed dynamically using e.g.
QScriptValue::setScriptClass(), or the overload of
QScriptEngine::newQObject() that takes an existing object
as first argument (it "promotes" the plain script object to
a QObject wrapper).
This makes the bindings produced by the bindings generator
work.
When JSC becomes a shared library, we need another solution.
Diffstat (limited to 'examples/script/qstetrix')
0 files changed, 0 insertions, 0 deletions