on xenial help sign in
tweaked animations
commitd3821d4652e21ea4237aaa9414e08fd3ad5f4296 authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 27 Aug 2014, 21:54 (12 years ago) parent063f167
1 file changed+10−8
qml/Stages/SessionContainer.qml+10−8
qml/Stages/SessionContainer.qml+10−8
@@ -75,23 +75,20 @@ Item {
7575 Connections {
7676 target: modelData
7777 onSurfaceChanged: {
78− if (surface) item.animateIn(swipeFromBottom);
78+ if (modelData.surface) {
79+ item.animateIn();
80+ }
7981 }
8082 onRemoved: {
8183 item.removing = true;
8284 item.animateOut();
8385 }
8486 }
85−
86− Component {
87− id: swipeFromBottom
88− SwipeFromBottomAnimation {}
89− }
9087 }
9188 }
9289
93− function animateIn(animationComponent) {
94− var animation = animationComponent.createObject(root,
90+ function animateIn() {
91+ var animation = swipeFromBottom.createObject(root,
9592 {
9693 "sessionContainer": root,
9794 "surfaceContainer": surfaceContainer
@@ -112,6 +109,11 @@ Item {
112109 }
113110 }
114111
112+ Component {
113+ id: swipeFromBottom
114+ SwipeFromBottomAnimation {}
115+ }
116+
115117 QtObject {
116118 id: d
117119 property var animations: []