Changeset View
Changeset View
Standalone View
Standalone View
effects/fade/package/contents/code/main.js
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 91 | animations: [{ | |||
---|---|---|---|---|---|
92 | type: Effect.Opacity, | 92 | type: Effect.Opacity, | ||
93 | curve: QEasingCurve.OutQuart, | 93 | curve: QEasingCurve.OutQuart, | ||
94 | to: 0.0 | 94 | to: 0.0 | ||
95 | }] | 95 | }] | ||
96 | }); | 96 | }); | ||
97 | } | 97 | } | ||
98 | } | 98 | } | ||
99 | effects.windowAdded.connect(fadeInHandler); | 99 | effects.windowAdded.connect(fadeInHandler); | ||
100 | effects.windowShown.connect(fadeInHandler); | | |||
101 | effects.windowClosed.connect(fadeOutHandler); | 100 | effects.windowClosed.connect(fadeOutHandler); | ||
102 | effects.windowHidden.connect(fadeOutHandler); | | |||
103 | effects.windowDataChanged.connect(function (window, role) { | 101 | effects.windowDataChanged.connect(function (window, role) { | ||
104 | if (role == Effect.WindowAddedGrabRole) { | 102 | if (role == Effect.WindowAddedGrabRole) { | ||
105 | if (effect.isGrabbed(window, Effect.WindowAddedGrabRole)) { | 103 | if (effect.isGrabbed(window, Effect.WindowAddedGrabRole)) { | ||
106 | if (window.fadeInWindowTypeAnimation !== undefined) { | 104 | if (window.fadeInWindowTypeAnimation !== undefined) { | ||
107 | cancel(window.fadeInWindowTypeAnimation); | 105 | cancel(window.fadeInWindowTypeAnimation); | ||
108 | window.fadeInWindowTypeAnimation = undefined; | 106 | window.fadeInWindowTypeAnimation = undefined; | ||
109 | } | 107 | } | ||
110 | } | 108 | } | ||
Show All 9 Lines |