aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/snippets/QMLSNIPPETS.TXT
blob: cd50273ed4949ac874878ec81499f4fc7fe18f59 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
property <name> <name> : <name>
if you delete the last name as you tab through it should also delete the : colon as that is not needed.

----------------
Item {
	id: <name>
	
	}
If you delete the name maybe the 'id:' should be deleted as well.

This is fine for most other QML elements such as Rectangle and MouseArea

----------------

BorderImage {
    id: <name>
    width: <name>; height: <name>
    border.left: <name>; border.top: <name>
    border.right: <name>; border.bottom: <name>
    source: "<name>"
}

-------------------

Image {
    id: <name>
    source: "<name>"
}

----------------

Text {
    id: <name>
    text: "<name>"
}

----------------

states: [
    State {
        name: "<name>"
        PropertyChanges {
            target: <name>
            <- cursor should end up here at the end?
        }
    }
]

------------------
State {
    name: "<name>"
    PropertyChanges {
        target: <name>
        <- cursor should end up here at the end?
    }
}


--------------------
transitions: [
    Transition {
        from: "<name>"
        to: "<name>"
        <- cursor should end up here at the end?
     }
]

-----------------------

Transition {
    from: "<name>"
    to: "<name>"
    <- cursor should end up here at the end?
}

-----------------------

PropertyChanges {
        target: <name>
        <- cursor should end up here at the end?
    }

NumberAnimation { matchTargets: "<name>"; matchProperties: "<name>"; duration: <int> }
NumberAnimation { target: "<name>"; property: "<name>"; value: <name>; duration: <int> }
PropertyAction {  matchTargets: "<name>"; matchProperties: "<name>"; duration: <int> }
PropertyAction { target: "<name>"; property: "<name>"; value: <name>; duration: <int> }
PauseAnimation { duration: <name>}
ColorAnimation { from: <name>; to: <name>; duration: <int> } 
effect: Colorize { color: "<name>" }
effect: Blur { blurRadius: "<int>" }
effect: DropShadow {
            blurRadius: <int>
            offset.x: <int>
            offset.y: <int>
        }