Add default conversion for types long and ulong
authorKent Hansen <kent.hansen@nokia.com>
Mon, 13 Aug 2012 07:47:43 +0000 (09:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 14 Aug 2012 06:29:21 +0000 (08:29 +0200)
commitb0c4e816e6da2c09593cf8de2f563093947ebdaf
tree50659e7b5e8689af5d4a6cf4dd55ff75e54ce36b
parentd1cf1cc364463c196dfc99f04328755a67476569
Add default conversion for types long and ulong

Such conversion is not guaranteed to be lossless on all platforms,
but it's still reasonable to support these types by default.
JSC::JSValue already had constructors for them.

The type matching / overload resolution in the QObject binding
already handled long and ulong, but the value conversion itself
was missing, for some reason.

Task-number: QTBUG-2124
Change-Id: I14ff29a8e949403234b7659c0aca8b48bcdbda0e
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/script/api/qscriptengine.cpp
src/script/doc/src/scripting.qdoc
tests/auto/qscriptengine/tst_qscriptengine.cpp
tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp