blob: a92ff174080795e45d04516f0b899d14caea2e2d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
pragma Strict
import QtQml
RefuseWrite {
id: self
function idToId() {
let v = self.things
v[1] = 42.25
self.things = v
}
function scopeToScope() {
let v = things
v[0] = 0.5
things = v
}
function idToScope() {
let v = self.things
v[2] = 3
self.things = v
}
function scopeToId() {
let v = things
v[3] = 4
things = v
}
function scopeToUnrelated() {
let v = things
v[4] = 5
a.things = v
}
function idToUnrelated() {
let v = self.things
v[5] = 6
a.things = v
}
property QtObject a: QtObject {
id: a
property list<var> things
}
}
|