aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-08-27 14:18:15 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-29 09:50:21 +0000
commitf5b0e6640f5af0bb40e19072224ea982c2cd686c (patch)
tree1fbb92f9ca98562a6a84c1591134b31c79f0e735 /src
parent1ce59c195ec20f7360445c34b5988bd49f7cca2b (diff)
StackView: use XAnimator
Change-Id: Ia972ee8aa6dbf65b509900fbcee0bcbaf9aefcee Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/imports/controls/StackView.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imports/controls/StackView.qml b/src/imports/controls/StackView.qml
index 1748d964..3aadd37a 100644
--- a/src/imports/controls/StackView.qml
+++ b/src/imports/controls/StackView.qml
@@ -43,37 +43,37 @@ T.StackView {
//! [popEnter]
popEnter: Transition {
- NumberAnimation { property: "x"; from: -root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
+ XAnimator { from: -root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
}
//! [popEnter]
//! [popExit]
popExit: Transition {
- NumberAnimation { property: "x"; from: 0; to: root.width; duration: 400; easing.type: Easing.OutCubic }
+ XAnimator { from: 0; to: root.width; duration: 400; easing.type: Easing.OutCubic }
}
//! [popExit]
//! [pushEnter]
pushEnter: Transition {
- NumberAnimation { property: "x"; from: root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
+ XAnimator { from: root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
}
//! [pushEnter]
//! [pushExit]
pushExit: Transition {
- NumberAnimation { property: "x"; from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic }
+ XAnimator { from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic }
}
//! [pushExit]
//! [replaceEnter]
replaceEnter: Transition {
- NumberAnimation { property: "x"; from: root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
+ XAnimator { from: root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
}
//! [replaceEnter]
//! [replaceExit]
replaceExit: Transition {
- NumberAnimation { property: "x"; from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic }
+ XAnimator { from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic }
}
//! [replaceExit]
}