diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-11-29 08:41:24 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-11-29 08:41:24 (GMT) |
commit | 312604c85b1e6a6fc6de505bac86848936f81edd (patch) | |
tree | 40708cd6a968a54dcdbbbf7d0e98007f6cae1ab5 /tests/auto/declarative/qdeclarativeproperty/data | |
parent | b604dc0b77a3a4b9001d682925006a3438e00cb7 (diff) | |
download | Qt-312604c85b1e6a6fc6de505bac86848936f81edd.zip Qt-312604c85b1e6a6fc6de505bac86848936f81edd.tar.gz Qt-312604c85b1e6a6fc6de505bac86848936f81edd.tar.bz2 |
Improve consistency in handling of aliases, bindings and value types
Task-number: QTBUG-13719
Diffstat (limited to 'tests/auto/declarative/qdeclarativeproperty/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativeproperty/data/aliasPropertyBindings.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeproperty/data/aliasPropertyBindings.qml b/tests/auto/declarative/qdeclarativeproperty/data/aliasPropertyBindings.qml new file mode 100644 index 0000000..a253a58 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeproperty/data/aliasPropertyBindings.qml @@ -0,0 +1,19 @@ +import QtQuick 1.0 + +Item { + id: root + + property real test: 9 + property real test2: 3 + + property real realProperty: test * test + test + property alias aliasProperty: root.realProperty + + states: State { + name: "switch" + PropertyChanges { + target: root + aliasProperty: 32 * test2 + } + } +} |