equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
2 |
|
3 Item { |
|
4 id: root |
|
5 |
|
6 property int a: 1 |
|
7 property int binding: a |
|
8 property string binding2: a + "Test" |
|
9 property int binding3: myFunction() |
|
10 property int binding4: nestedObject.myNestedFunction() |
|
11 |
|
12 function myFunction() { |
|
13 return a; |
|
14 } |
|
15 |
|
16 Item { |
|
17 id: nestedObject |
|
18 |
|
19 function myNestedFunction() { |
|
20 return a; |
|
21 } |
|
22 |
|
23 property int a: 2 |
|
24 property int binding: a |
|
25 property string binding2: a + "Test" |
|
26 property int binding3: myFunction() |
|
27 property int binding4: myNestedFunction() |
|
28 } |
|
29 |
|
30 ScopeObject { |
|
31 id: compObject |
|
32 } |
|
33 |
|
34 property alias test1: root.binding |
|
35 property alias test2: nestedObject.binding |
|
36 property alias test3: root.binding2 |
|
37 property alias test4: nestedObject.binding2 |
|
38 property alias test5: root.binding3 |
|
39 property alias test6: nestedObject.binding3 |
|
40 property alias test7: root.binding4 |
|
41 property alias test8: nestedObject.binding4 |
|
42 property alias test9: compObject.binding |
|
43 property alias test10: compObject.binding2 |
|
44 } |