Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
c913351
commit b63ce68
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/auto/quick/qquickanimations/data/pathAnimationInOutBackCrash.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters