diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-05-05 06:22:51 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-05-05 06:23:55 (GMT) |
commit | f5e3e21e95275a8cf31cddf2063dfa497e92872e (patch) | |
tree | a7a2c41b884f6faeef6678c410006623eb714e23 /examples/declarative/behaviors | |
parent | d6597781a658ba9546bc56f4f3079234c0790e1d (diff) | |
download | Qt-f5e3e21e95275a8cf31cddf2063dfa497e92872e.zip Qt-f5e3e21e95275a8cf31cddf2063dfa497e92872e.tar.gz Qt-f5e3e21e95275a8cf31cddf2063dfa497e92872e.tar.bz2 |
Use enum rather than string for easing type.
Diffstat (limited to 'examples/declarative/behaviors')
-rw-r--r-- | examples/declarative/behaviors/behavior-example.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/behaviors/behavior-example.qml b/examples/declarative/behaviors/behavior-example.qml index b7bae6c..1f17b81 100644 --- a/examples/declarative/behaviors/behavior-example.qml +++ b/examples/declarative/behaviors/behavior-example.qml @@ -49,12 +49,12 @@ Rectangle { // Setting an 'elastic' behavior on the focusRect's x property. Behavior on x { - NumberAnimation { easing.type: "OutElastic"; easing.amplitude: 3.0; easing.period: 2.0; duration: 300 } + NumberAnimation { easing.type: Easing.OutElastic; easing.amplitude: 3.0; easing.period: 2.0; duration: 300 } } // Setting an 'elastic' behavior on the focusRect's y property. Behavior on y { - NumberAnimation { easing.type: "OutElastic"; easing.amplitude: 3.0; easing.period: 2.0; duration: 300 } + NumberAnimation { easing.type: Easing.OutElastic; easing.amplitude: 3.0; easing.period: 2.0; duration: 300 } } Text { |