tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.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 real realProperty: test * test + test |
| 10 | property alias aliasProperty: root.realProperty |
| 11 | |
| 12 | states: State { |
| 13 | name: "switch" |
| 14 | PropertyChanges { |
| 15 | target: root |
| 16 | aliasProperty: 32 * test2 |
| 17 | } |
| 18 | } |
| 19 | } |