Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinanimationeffect.cpp
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Line(s) | 211 | if (from && !from->isValid()) { | |||
---|---|---|---|---|---|
212 | from->set(0.0); | 212 | from->set(0.0); | ||
213 | } | 213 | } | ||
214 | if (to && !to->isValid()) { | 214 | if (to && !to->isValid()) { | ||
215 | to->set(1.0); | 215 | to->set(1.0); | ||
216 | } | 216 | } | ||
217 | } | 217 | } | ||
218 | } | 218 | } | ||
219 | 219 | | |||
220 | quint64 AnimationEffect::p_animate( EffectWindow *w, Attribute a, uint meta, int ms, FPx2 to, QEasingCurve curve, int delay, FPx2 from, bool keepAtTarget, bool fullScreenEffect, bool keepAlive) | 220 | quint64 AnimationEffect::p_animate( EffectWindow *w, Attribute a, uint meta, int ms, FPx2 to, const QEasingCurve &curve, int delay, FPx2 from, bool keepAtTarget, bool fullScreenEffect, bool keepAlive) | ||
221 | { | 221 | { | ||
222 | const bool waitAtSource = from.isValid(); | 222 | const bool waitAtSource = from.isValid(); | ||
223 | validate(a, meta, &from, &to, w); | 223 | validate(a, meta, &from, &to, w); | ||
224 | 224 | | |||
225 | Q_D(AnimationEffect); | 225 | Q_D(AnimationEffect); | ||
226 | if (!d->m_isInitialized) | 226 | if (!d->m_isInitialized) | ||
227 | init(); // needs to ensure the window gets removed if deleted in the same event cycle | 227 | init(); // needs to ensure the window gets removed if deleted in the same event cycle | ||
228 | if (d->m_animations.isEmpty()) { | 228 | if (d->m_animations.isEmpty()) { | ||
▲ Show 20 Lines • Show All 829 Lines • Show Last 20 Lines |