diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-09 06:20:45 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-09 06:20:45 (GMT) |
commit | fba8a431a9af215c54b04b5ab23c684621615a94 (patch) | |
tree | 16fb557585d20421489c157c6a4c3083fa4b42ab /tests/auto/declarative/qdeclarativeecmascript/data | |
parent | d660cb7978785e8aeed59bc781f4a3df1289bb84 (diff) | |
download | Qt-fba8a431a9af215c54b04b5ab23c684621615a94.zip Qt-fba8a431a9af215c54b04b5ab23c684621615a94.tar.gz Qt-fba8a431a9af215c54b04b5ab23c684621615a94.tar.bz2 |
Add QML support for methods returning QList<QObject *>
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/ownership.qml | 5 | ||||
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/qlistqobjectMethods.qml | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/ownership.qml b/tests/auto/declarative/qdeclarativeecmascript/data/ownership.qml new file mode 100644 index 0000000..72edf6e --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/ownership.qml @@ -0,0 +1,5 @@ +import Qt 4.6 + +QtObject { + Component.onCompleted: { var a = getObject(); a = null; } +} diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/qlistqobjectMethods.qml b/tests/auto/declarative/qdeclarativeecmascript/data/qlistqobjectMethods.qml new file mode 100644 index 0000000..5897e2a --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/qlistqobjectMethods.qml @@ -0,0 +1,6 @@ +import Qt 4.6 + +QtObject { + property int test: getObjects().length + property bool test2: getObjects()[0].trueProperty +} |