tabs: page transition left to right

This commit is contained in:
Jaquee 2016-12-04 16:51:42 +01:00
parent 26abdee5c4
commit 3d16f73eda
No known key found for this signature in database
GPG key ID: 384E52B09F45DC39

View file

@ -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