qtdeclarative/tests/auto/qml/qqmllanguage
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 qml: Override the new Object::instanceOf hook to allow QML type checking 2017-03-15 22:11:31 +00:00
qqmllanguage.pro Tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0 for simple cases. 2015-09-02 04:19:22 +00:00
testtypes.cpp Add missing qmlRegisterExtendedUncreatableType variant 2017-02-17 07:57:37 +00:00
testtypes.h Add missing qmlRegisterExtendedUncreatableType variant 2017-02-17 07:57:37 +00:00
tst_qqmllanguage.cpp qml: Override the new Object::instanceOf hook to allow QML type checking 2017-03-15 22:11:31 +00:00