From 3d16f73eda5faf82be797e8d5635affa7bc13d18 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 4 Dec 2016 16:51:42 +0100 Subject: [PATCH] tabs: page transition left to right --- MiddlePanel.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/MiddlePanel.qml b/MiddlePanel.qml index e14255a5..1d257afa 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -265,6 +265,25 @@ Rectangle { anchors.top: styledRow.bottom anchors.margins: 4 clip: true // otherwise animation will affect left panel + + delegate: StackViewDelegate { + pushTransition: StackViewTransition { + PropertyAnimation { + target: enterItem + property: "x" + from: 0 - target.width + to: 0 + duration: 300 + } + PropertyAnimation { + target: exitItem + property: "x" + from: 0 + to: target.width + duration: 300 + } + } + } } } // border