blob: 9d3f39bef42c262d4c3bb9497996e039fdcbaf7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import Qt 4.7
// Try to look up x, y, z
// in all symbol contexts. It should always get the function.
Item {
id: theRoot
Script {
function x() {}
}
property variant x: "wrong";
property variant y: "wrong";
property variant z: "wrong";
Item {
id: theParent
Script {
function y() {}
}
property variant x: "wrong";
property variant y: "wrong";
property variant z: "wrong";
Item {
id: theChild
Script {
function z() {}
}
property variant x: "wrong";
property variant y: "wrong";
property variant z: "wrong";
}
}
}
|