diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-11-30 23:00:17 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-11-30 23:00:17 (GMT) |
commit | 9d9152a4c0fd3752418662b0fcdd77b3906d9b5b (patch) | |
tree | 25788c724d28c853c8ba6d79291fb3ea8a5540ed /tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml | |
parent | 4d144f84300fb2613391fbe3de9fc9fdba5c6691 (diff) | |
parent | bb1a6cd1e9d6d00e8d70f665ca223261e9eda06e (diff) | |
download | Qt-9d9152a4c0fd3752418662b0fcdd77b3906d9b5b.zip Qt-9d9152a4c0fd3752418662b0fcdd77b3906d9b5b.tar.gz Qt-9d9152a4c0fd3752418662b0fcdd77b3906d9b5b.tar.bz2 |
Merge branch '4.7-upstream' into 4.7-water
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml b/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml new file mode 100644 index 0000000..4f07cbf --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml @@ -0,0 +1,29 @@ +import QtQuick 1.0 + +Item { + id: me + property bool test: false + + property int value: 9 + + AliasBindingsOverrideTargetType { + id: aliasType + pointAliasProperty.x: me.value + } + + Component.onCompleted: { + if (aliasType.pointAliasProperty.x != 9) return; + + me.value = 11; + if (aliasType.pointAliasProperty.x != 11) return; + + aliasType.data = 8; + if (aliasType.pointAliasProperty.x != 11) return; + + me.value = 4; + if (aliasType.pointAliasProperty.x != 4) return; + + test = true; + } +} + |