Add QJSValue::isCallable() function
authorKent Hansen <kent.hansen@nokia.com>
Wed, 18 Jan 2012 12:23:16 +0000 (13:23 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Jan 2012 22:35:18 +0000 (23:35 +0100)
commitdfad4902b7227540baa2a15f894fe8937c3c6e15
tree4df0ba8edd593afddc310fa20e1388f3f11ab52b
parent846b66d46a1e0f4f0baf9bed387c588f6faf8e0c
Add QJSValue::isCallable() function

This replaces the isFunction() function. isFunction() will be
removed. It's possible that objects are callable even if they aren't
Function instances. Also, "isCallable" is consistent with call().

Task-number: QTBUG-23604
Change-Id: I42e0ab2ad9dc84e7793199254bbd89d5c9466e6a
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/declarative/qml/v8/qjsvalue.cpp
src/declarative/qml/v8/qjsvalue.h
tests/auto/declarative/qjsengine/tst_qjsengine.cpp
tests/auto/declarative/qjsvalue/tst_qjsvalue.cpp