diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-19 07:08:13 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-19 07:08:13 (GMT) |
commit | 4223acff70de3036c5b7d75bccaec0c540c23556 (patch) | |
tree | 3c93c5a22e49b0998725fce10553bae96f036212 /tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml | |
parent | fae16b674b619b73037841a00577de5922a26595 (diff) | |
download | Qt-4223acff70de3036c5b7d75bccaec0c540c23556.zip Qt-4223acff70de3036c5b7d75bccaec0c540c23556.tar.gz Qt-4223acff70de3036c5b7d75bccaec0c540c23556.tar.bz2 |
Remove Script {} support
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml index 45c4f73..0d262c6 100644 --- a/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml +++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml @@ -1,18 +1,13 @@ import Qt.test 1.0 import Qt 4.6 +import "scriptDisconnect.1.js" as Script MyQmlObject { property int test: 0 id: root - Script { - function testFunction() { - test++; - } - } + Component.onCompleted: root.argumentSignal.connect(Script.testFunction); - Component.onCompleted: root.argumentSignal.connect(testFunction); - - onBasicSignal: root.argumentSignal.disconnect(testFunction); + onBasicSignal: root.argumentSignal.disconnect(Script.testFunction); } |