tests/auto/qml/qqmlproperty/data/aliasPropertyBindings2.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Item { |
| 4 | id: root |
| 5 | |
| 6 | property real test: 9 |
| 7 | property real test2: 3 |
| 8 | |
| 9 | property alias aliasProperty: innerObject.realProperty |
| 10 | |
| 11 | property QtObject innerObject: QtObject { |
| 12 | id: innerObject |
| 13 | property real realProperty: test * test + test |
| 14 | } |
| 15 | |
| 16 | states: State { |
| 17 | name: "switch" |
| 18 | PropertyChanges { |
| 19 | target: root |
| 20 | aliasProperty: 32 * test2 |
| 21 | } |
| 22 | } |
| 23 | } |