diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-09-30 09:03:00 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-10-05 09:07:29 +0200 |
commit | 0132e23385b1b823e9d98fdb7277fa098f4767c0 (patch) | |
tree | 8f54862e78f0e0e6124edfff9864c024648a9e5d /share | |
parent | 87713f50c6510d47749a4ff64421dfcf17001135 (diff) | |
download | qt-creator-0132e23385b1b823e9d98fdb7277fa098f4767c0.tar.gz |
Qml snippets: Improve NumberAnimation and PropertyAction.
Change-Id: I684a764797cd75a231f3da611ca6afeabdd48f61
Reviewed-on: http://codereview.qt-project.org/5835
Reviewed-by: Lasse Holmstedt
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/snippets/qml.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/snippets/qml.xml b/share/qtcreator/snippets/qml.xml index 95d3b884aa..8d8448d15e 100644 --- a/share/qtcreator/snippets/qml.xml +++ b/share/qtcreator/snippets/qml.xml @@ -52,9 +52,9 @@ $$ }</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$"; to: $value$; 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$"; value: $value$ }</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> |