Merge pull request #238

17add2d middlePanel: fix anchor error (Jaquee)
3d16f73 tabs: page transition left to right (Jaquee)
This commit is contained in:
Riccardo Spagni 2016-12-09 00:08:27 +02:00
commit 73ca4da6c9
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -272,9 +272,28 @@ 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
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