Move Effect::animationTime() implementation to effect.h

Amends d13b53c366.

It was overlooked.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent fe9821722e
commit b0292fc0de
  1. 6
      src/libkwineffects/effect.h
  2. 9
      src/libkwineffects/effects.h

@ -926,6 +926,12 @@ public Q_SLOTS:
virtual bool borderActivated(ElectricBorder border);
};
template<typename T>
int Effect::animationTime(int defaultDuration)
{
return animationTime(T::duration() != 0 ? T::duration() : defaultDuration);
}
/**
* Prefer the KWIN_EFFECT_FACTORY macros.
*/

@ -2737,15 +2737,6 @@ void Motion<T>::finish()
m_velocity = T();
}
/***************************************************************
Effect
***************************************************************/
template<typename T>
int Effect::animationTime(int defaultDuration)
{
return animationTime(T::duration() != 0 ? T::duration() : defaultDuration);
}
/***************************************************************
EffectWindow
***************************************************************/

Loading…
Cancel
Save