summaryrefslogtreecommitdiffstats
path: root/examples/qtconcurrent
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-30 08:44:15 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-30 08:48:45 (GMT)
commit776c4a5b8035b87d011b8e431c3d9e970ad98cd9 (patch)
tree1407bc256a512722e40fcb0b940c3880eb503e62 /examples/qtconcurrent
parentd2820e3a67812d31f45df282b378a75511bb1c4b (diff)
downloadQt-776c4a5b8035b87d011b8e431c3d9e970ad98cd9.zip
Qt-776c4a5b8035b87d011b8e431c3d9e970ad98cd9.tar.gz
Qt-776c4a5b8035b87d011b8e431c3d9e970ad98cd9.tar.bz2
fix two bugs in the custom script class example
1) fromScriptValue() needs to call qvariant_cast() on the data, in order to be symmetric with toScriptValue(). 2) use the overload of newFunction() that takes a prototype object, so that the prototype.constructor and constructor.prototype relationship is set up correctly; otherwise the instanceof operator won't work.
Diffstat (limited to 'examples/qtconcurrent')
0 files changed, 0 insertions, 0 deletions