From 3d16f73eda5faf82be797e8d5635affa7bc13d18 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 4 Dec 2016 16:51:42 +0100 Subject: [PATCH 1/2] 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 From 17add2d75e36b5f9f224d2234db55dc9c68f7fee Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 4 Dec 2016 16:53:53 +0100 Subject: [PATCH 2/2] middlePanel: fix anchor error --- MiddlePanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 1d257afa..e969a466 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -262,7 +262,7 @@ Rectangle { anchors.topMargin: 30 Layout.fillWidth: true Layout.fillHeight: true - anchors.top: styledRow.bottom + anchors.top: parent.top anchors.margins: 4 clip: true // otherwise animation will affect left panel