forked from qt-creator/qt-creator
		
	Change-Id: Ia10d41887e6adbb0603a18fbf69bb1ce67eeac73 Task-number: QTCREATORBUG-12253 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
		
			
				
	
	
		
			86 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			86 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>
 |