blob: ded863106a7bb23b507dde0777384bdfc2ee3eed (
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
48
|
// imports
import QtQuick 2.0
import Qt.labs.particles 1.0 as Part
import "/usr" as Foo
import "." 1.0
Text {
// properties
property int foo
property alias bar: x
property list<QtObject> pro
default property int def
property var baz: Rectangle {
width: 20
}
// script binding
x: x + y
// object bindings
Rectangle on font.family {
x: x
}
anchors.bottom: AnchorAnimation {
running: true
}
// array binding
states: [
State {
name: x
},
State {
name: y
}
]
// nested with qualified id
Part.ParticleMotion {
id: foo
}
// functions
function foo(a, b) {}
function foo(a, b) {
x = a + 12 * b
}
}
|