qml.xml 2.33 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<snippets>
3
<snippet>property <tab>type</tab> <tab>name</tab> : <tab>name</tab>
4
5
6
7
8
9
10
11
</snippet>
<snippet>Item {
	id: <tab>name</tab>
	
	}
</snippet>
<snippet>BorderImage {
    id: <tab>name</tab>
12
13
14
15
    source: "<tab>file</tab>"
    width: <tab>int</tab>; height: <tab>int</tab>
    border.left: <tab>int</tab>; border.top: <tab>int</tab>
    border.right: <tab>int</tab>; border.bottom: <tab>int</tab>
16
17
18
19
20
}
</snippet>

<snippet>Image {
    id: <tab>name</tab>
21
    source: "<tab>file</tab>"
22
23
24
25
26
}
</snippet>

<snippet>Text {
    id: <tab>name</tab>
27
    text: "<tab>text</tab>"
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
}
</snippet>

<snippet>states: [
    State {
        name: "<tab>name</tab>"
        PropertyChanges {
            target: <tab>name</tab>
            <tab/>
        }
    }
]
</snippet>

<snippet>State {
    name: "<tab>name</tab>"
    PropertyChanges {
        target: <tab>name</tab>
        <tab/>
    }
}
</snippet>

<snippet>transitions: [
    Transition {
        from: "<tab>name</tab>"
        to: "<tab>name</tab>"
        <tab/>
     }
]
</snippet>

<snippet>Transition {
    from: "<tab>name</tab>"
    to: "<tab>name</tab>"
    <tab/>
}
</snippet>

<snippet>PropertyChanges {
        target: <tab>name</tab>
        <tab/>
    }
</snippet>

73
<snippet description="with targets">NumberAnimation { targets: [<tab>name</tab>]; properties: "<tab>name</tab>"; duration: <tab>200</tab> }
74
</snippet>
75
<snippet description="with target">NumberAnimation { target: <tab>name</tab>; property: "<tab>name</tab>"; to: <tab>value</tab>; duration: <tab>200</tab> }
76
</snippet>
77
<snippet description="with targets">PropertyAction { targets: [<tab>name</tab>]; properties: "<tab>name</tab>" }
78
</snippet>
79
<snippet description="with target">PropertyAction { target: "<tab>name</tab>"; property: "<tab>name</tab>"; value: <tab>value</tab> }
80
</snippet>
81
<snippet>PauseAnimation { duration: <tab>200</tab> }
82
</snippet>
83
<snippet>ColorAnimation { from: <tab>color</tab>; to: <tab>color</tab>; duration: <tab>200</tab> }
84
</snippet>
85
<snippet description="Colorize">effect: Colorize { color: "<tab>color</tab>" }
86
</snippet>
87
<snippet description="Blur">effect: Blur { blurRadius: "<tab>200</tab>" }
88
</snippet>
89
<snippet description="DropShadow">effect: DropShadow {
90
91
92
            blurRadius: <tab>3</tab>
            offset.x: <tab>2</tab>
            offset.y: <tab>2</tab>
93
94
95
96
        }
</snippet>

</snippets>