qtdeclarative/tests/auto/qml/qqmlecmascript
Robin Burchell 34ff6c40c1 qml: Override the new Object::instanceOf hook to allow QML type checking
[ChangeLog][QtQml] The instanceof keyword in JavaScript has been
extended to work on QML types and instances. This means that you are now
able to use it to verify that a var is indeed the type you expect (e.g.
someVar instanceof Rectangle).

Note that one of the added tests revealed a slight shortcoming in the
QML type system (QTBUG-58477). For now, we should keep consistency and
work to address the problem universally in the future.

Change-Id: I7d9bf9b64cfd037908de1ae51b01065eacb95abe
Task-number: QTBUG-24799
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-03-15 22:11:31 +00:00
..
data Fix support for QJSValue as C++ signal parameter type, part 2 2017-01-18 05:51:05 +00:00
qqmlecmascript.pro Tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0 for simple cases. 2015-09-02 04:19:22 +00:00
qqmlecmascript.qrc Fix Qt.include with cached compilation units and resources 2014-08-06 09:56:49 +02:00
testtypes.cpp Directly load already known metaproperties in QV4QObjectWrapper 2017-02-15 13:51:26 +00:00
testtypes.h Directly load already known metaproperties in QV4QObjectWrapper 2017-02-15 13:51:26 +00:00
tst_qqmlecmascript.cpp qml: Override the new Object::instanceOf hook to allow QML type checking 2017-03-15 22:11:31 +00:00