diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-09 07:59:07 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-09 07:59:07 (GMT) |
commit | 3d90e35abae15f133ad2a71874f6926773c96449 (patch) | |
tree | 8faae80f578c8faea02bf5a1d4855ed0bb7e402c /tests/auto/declarative/qdeclarativeqt/data | |
parent | 06c286b74274166a47df20dc425f76051fb03d4d (diff) | |
download | Qt-3d90e35abae15f133ad2a71874f6926773c96449.zip Qt-3d90e35abae15f133ad2a71874f6926773c96449.tar.gz Qt-3d90e35abae15f133ad2a71874f6926773c96449.tar.bz2 |
Add a Qt.isQtObject() method
QTBUG-9705
Diffstat (limited to 'tests/auto/declarative/qdeclarativeqt/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativeqt/data/isQtObject.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeqt/data/isQtObject.qml b/tests/auto/declarative/qdeclarativeqt/data/isQtObject.qml new file mode 100644 index 0000000..d986492 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeqt/data/isQtObject.qml @@ -0,0 +1,14 @@ +import Qt 4.6 + +QtObject { + id: root + + property QtObject nullObject + + property bool test1: Qt.isQtObject(root) + property bool test2: Qt.isQtObject(nullObject) + property bool test3: Qt.isQtObject(10) + property bool test4: Qt.isQtObject(null) + property bool test5: Qt.isQtObject({ a: 10, b: 11 }) +} + |