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

Amends d13b53c366.

It was overlooked.
This commit is contained in:
Vlad Zahorodnii 2023-11-16 16:01:37 +02:00
parent fe9821722e
commit b0292fc0de
2 changed files with 6 additions and 9 deletions

View file

@ -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.
*/

View file

@ -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
***************************************************************/