Files
qt-creator/share/qtcreator/snippets/qml.xml
Christian Kamm 0132e23385 Qml snippets: Improve NumberAnimation and PropertyAction.
Change-Id: I684a764797cd75a231f3da611ca6afeabdd48f61
Reviewed-on: http://codereview.qt-project.org/5835
Reviewed-by: Lasse Holmstedt
2011-10-05 09:07:29 +02:00

61 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<snippets>
<snippet group="QML" trigger="property" id="qml_property">property $type$ $name$: $value$</snippet>
<snippet group="QML" trigger="Item" id="qml_item">Item {
id: $name$
}</snippet>
<snippet group="QML" trigger="BorderImage" id="qml_borderimage">BorderImage {
id: $name$
source: "$file$"
width: $100$; height: $100$
border.left: $5$; border.top: $5$
border.right: $5$; border.bottom: $5$
}</snippet>
<snippet group="QML" trigger="Image" id="qml_image">Image {
id: $name$
source: "$file$"
}</snippet>
<snippet group="QML" trigger="Text" id="qml_text">Text {
id: $name$
text: qsTr("$text$")
}</snippet>
<snippet group="QML" trigger="states" id="qml_states">states: [
State {
name: "$name$"
PropertyChanges {
target: $object$
$$
}
}
]</snippet>
<snippet group="QML" trigger="State" id="qml_state">State {
name: "$name$"
PropertyChanges {
target: $object$
$$
}
}</snippet>
<snippet group="QML" trigger="transitions" id="qml_transitions">transitions: [
Transition {
from: "$fromState$"
to: "$toState$"
$$
}
]</snippet>
<snippet group="QML" trigger="Transition" id="qml_transition">Transition {
from: "$fromState$"
to: "$toState$"
$$
}</snippet>
<snippet group="QML" trigger="PropertyChanges" id="qml_propertychanges">PropertyChanges {
target: $object$
$$
}</snippet>
<snippet group="QML" trigger="NumberAnimation" id="qml_numberanimationwithtargets" complement="with targets">NumberAnimation { targets: [$object$]; properties: "$name$"; duration: $200$ }</snippet>
<snippet group="QML" trigger="NumberAnimation" id="qml_numberanimationwithtarget" complement="with target">NumberAnimation { target: $object$; property: "$name$"; duration: $200$; easing.type: Easing.$InOutQuad$ }</snippet>
<snippet group="QML" trigger="PropertyAction" id="qml_propertyactionwithtargets" complement="with targets">PropertyAction { targets: [$object$]; properties: "$name$" }</snippet>
<snippet group="QML" trigger="PropertyAction" id="qml_propertyactionwithtarget" complement="with target">PropertyAction { target: $object$; property: "$name$" }</snippet>
<snippet group="QML" trigger="PauseAnimation" id="qml_pauseanimation">PauseAnimation { duration: $200$ }</snippet>
<snippet group="QML" trigger="ColorAnimation" id="qml_coloranimation">ColorAnimation { from: $"white"$; to: $"black"$; duration: $200$ }</snippet>
</snippets>