diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-06-23 13:21:14 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-06-23 13:59:52 +0000 |
commit | a7a5cf66eeee8754e9a8e156396d1540fc2c2c85 (patch) | |
tree | d40c34abfd3d0ade0b1add81f00699fbdc6d5555 /src/imports/controls/StackView.qml | |
parent | a6bcd2624533ed00ce5cc1dd50ffbb042be5cb93 (diff) |
Docs: Customizing Qt Quick Controls 2
Change-Id: I6fa85e9fa9a2f7c98ec751786271a60c6c050db5
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/StackView.qml')
-rw-r--r-- | src/imports/controls/StackView.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imports/controls/StackView.qml b/src/imports/controls/StackView.qml index 396778b7..91df6420 100644 --- a/src/imports/controls/StackView.qml +++ b/src/imports/controls/StackView.qml @@ -40,19 +40,27 @@ import QtQuick.Controls 2.0 AbstractStackView { id: root + //! [popEnter] popEnter: Transition { NumberAnimation { property: "x"; 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 } } + //! [popExit] + //! [pushEnter] pushEnter: Transition { NumberAnimation { property: "x"; 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 } } + //! [pushExit] } |