diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-25 21:30:59 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-23 15:34:00 +0000 |
commit | e1bf1e9a03066a9029132e476794d3f16abcd6ff (patch) | |
tree | e2714d3b5267014500dfe293a0616c22e803476b /src/imports/controls/StackView.qml | |
parent | 2bbe54908b7ccfef8448b2db586be2c3a25bbcb6 (diff) |
StackView: add dedicated replace transitions
Change-Id: I614d11bb566c96166ebf8bc0d2f5d4286d823a5f
Reviewed-by: Kai Uwe Broulik <kde@privat.broulik.de>
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/StackView.qml')
-rw-r--r-- | src/imports/controls/StackView.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/imports/controls/StackView.qml b/src/imports/controls/StackView.qml index 1288f8a4..1748d964 100644 --- a/src/imports/controls/StackView.qml +++ b/src/imports/controls/StackView.qml @@ -64,4 +64,16 @@ T.StackView { NumberAnimation { property: "x"; 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 } + } + //! [replaceEnter] + + //! [replaceExit] + replaceExit: Transition { + NumberAnimation { property: "x"; from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic } + } + //! [replaceExit] } |