aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickanimations/data
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-03-22 14:07:28 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-23 05:19:35 +0100
commitb63ce68f316c91b0a3107d3d20e160628f5cefef (patch)
tree89aaa6345d595097a4975e4455a7dd65e02ed1be /tests/auto/quick/qquickanimations/data
parentc913351c9d6e3181cdddcc851e9d80cd7689fe93 (diff)
Fix crash issue for path animation and path interpulator
When set progress value out of [0,1], path animation and path interpulator should make sure the value be modified in the valid value range, otherwise the QQuickPath::backwardsPointAt() will crash. Task-number: QTBUG-24308 Change-Id: Icd6e9165c9f844ddb8ec84c229eac4db5246a749 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickanimations/data')
-rw-r--r--tests/auto/quick/qquickanimations/data/pathAnimationInOutBackCrash.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickanimations/data/pathAnimationInOutBackCrash.qml b/tests/auto/quick/qquickanimations/data/pathAnimationInOutBackCrash.qml
new file mode 100644
index 0000000000..1ee76f6906
--- /dev/null
+++ b/tests/auto/quick/qquickanimations/data/pathAnimationInOutBackCrash.qml
@@ -0,0 +1,26 @@
+import QtQuick 2.0
+Item {
+ id: root
+ width: 450; height: 600
+
+ Rectangle {
+ objectName:"rect"
+ id: rect
+ x:200
+ y:500
+ width: 225; height: 40
+ color: "lightsteelblue"
+ }
+ PathAnimation {
+ id:anim
+ running:true
+ duration: 200
+
+ easing.type: Easing.InOutBack
+
+ target:rect
+ path: Path {
+ PathLine { x: 0; y: 0 }
+ }
+ }
+} \ No newline at end of file