From a7a5cf66eeee8754e9a8e156396d1540fc2c2c85 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 23 Jun 2015 13:21:14 +0200 Subject: Docs: Customizing Qt Quick Controls 2 Change-Id: I6fa85e9fa9a2f7c98ec751786271a60c6c050db5 Reviewed-by: J-P Nurmi --- src/imports/controls/StackView.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/imports/controls/StackView.qml') 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] } -- cgit v1.2.3