diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-12 01:14:04 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-12 01:14:04 (GMT) |
commit | 4d6958dd6d62441d98826ce141b5824d7eb0dfb0 (patch) | |
tree | 4b7edd4c6113fcb475d63ef970e0ab21d3050d71 /tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml | |
parent | de4d752b3b1c475e1d5b7bf1539fa6a80a52ba1d (diff) | |
download | Qt-4d6958dd6d62441d98826ce141b5824d7eb0dfb0.zip Qt-4d6958dd6d62441d98826ce141b5824d7eb0dfb0.tar.gz Qt-4d6958dd6d62441d98826ce141b5824d7eb0dfb0.tar.bz2 |
The root object is always last default object
Fix for QT-2301
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml')
-rw-r--r-- | tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml b/tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml new file mode 100644 index 0000000..f65e253 --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml @@ -0,0 +1,20 @@ +import Qt.test 1.0 +import Qt 4.6 + +MyQmlObject { + property real base: 50 + property alias test1: myObject.test1 + property alias test2: myObject.test2 + + objectProperty: Object { + id: myObject + property real test1: base + property real test2: Math.max(0, base) + } + + // Signal with no args + onBasicSignal: base = 200 + // Signal with args + onArgumentSignal: base = 400 +} + |