remove animation when swithing to basic layout

This commit is contained in:
Jaquee 2017-03-02 12:40:58 +01:00
parent d9a2b1aa60
commit 8dc95a17e6
No known key found for this signature in database
GPG key ID: 384E52B09F45DC39

View file

@ -1039,19 +1039,15 @@ ApplicationWindow {
properties: "visible" properties: "visible"
value: false value: false
} }
NumberAnimation { PropertyAction {
target: appWindow target: appWindow
properties: "height" properties: "height"
to: 30 value: 30
easing.type: Easing.InCubic
duration: 200
} }
NumberAnimation { PropertyAction {
target: appWindow target: appWindow
properties: "width" properties: "width"
to: 470 value: 470
easing.type: Easing.InCubic
duration: 200
} }
PropertyAction { PropertyAction {
targets: [leftPanel, rightPanel] targets: [leftPanel, rightPanel]
@ -1064,12 +1060,10 @@ ApplicationWindow {
value: true value: true
} }
NumberAnimation { PropertyAction {
target: appWindow target: appWindow
properties: "height" properties: "height"
to: middlePanel.height value: middlePanel.height
easing.type: Easing.InCubic
duration: 200
} }
onStopped: { onStopped: {
@ -1081,12 +1075,10 @@ ApplicationWindow {
SequentialAnimation { SequentialAnimation {
id: goToProAnimation id: goToProAnimation
NumberAnimation { PropertyAction {
target: appWindow target: appWindow
properties: "height" properties: "height"
to: 30 value: 30
easing.type: Easing.InCubic
duration: 200
} }
PropertyAction { PropertyAction {
target: middlePanel target: middlePanel
@ -1098,19 +1090,15 @@ ApplicationWindow {
properties: "visible" properties: "visible"
value: true value: true
} }
NumberAnimation { PropertyAction {
target: appWindow target: appWindow
properties: "width" properties: "width"
to: rightPanelExpanded ? 1269 : 1269 - 300 value: rightPanelExpanded ? 1269 : 1269 - 300
easing.type: Easing.InCubic
duration: 200
} }
NumberAnimation { PropertyAction {
target: appWindow target: appWindow
properties: "height" properties: "height"
to: maxWindowHeight value: maxWindowHeight
easing.type: Easing.InCubic
duration: 200
} }
PropertyAction { PropertyAction {
target: frameArea target: frameArea