diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-05 20:20:35 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-05 20:20:35 (GMT) |
commit | 89e22c539702fbac311b3626e9407e2693579e72 (patch) | |
tree | 00a8ccd6b7fecfbee400f76995f009b501677580 /tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml | |
parent | b20ef0ade0aec89b969bd0ae7f754c680e390c67 (diff) | |
parent | d801a997abbea01eade4155f5e7a0d51437ba1d9 (diff) | |
download | Qt-89e22c539702fbac311b3626e9407e2693579e72.zip Qt-89e22c539702fbac311b3626e9407e2693579e72.tar.gz Qt-89e22c539702fbac311b3626e9407e2693579e72.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (25 commits)
optimize dynamic call-by-name away
Add support for QtScript connect/disconnect syntax in QML
Minor perf improvement when running QML script blocks
Fix qdeclarative{audio,video} tests.
Don't assume documents are in UTF-8.
Add basic support for explicit newParent in ParentAnimation.
Delete uninspiring example.
Fix compiler warning on RVCT
Use new enum syntax for value types.
Expect fail in currentIndex test for now.
Allow unquoted enum syntax for value types
More declarative examples cleanup.
Improve declarative tabs example.
Fix test leaks
Use _data() for some tests
Add missing NOTIFYs to timer, xmllistmodel, xmlrole
Document new ParentChange properties.
declarative examples cleanup
Fix test
Update QmlChanges.txt
...
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml new file mode 100644 index 0000000..fa90918 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml @@ -0,0 +1,22 @@ +import Qt.test 1.0 +import Qt 4.6 + +MyQmlObject { + property bool test: false + + id: root + + Script { + function testFunction() { + if (this.b == 12) + test = true; + } + } + + Component.onCompleted: { + var a = new Object; + a.b = 12; + root.argumentSignal.connect(a, testFunction); + } +} + |