Move Effect::animationTime() implementation to effect.h
Amends d13b53c366
.
It was overlooked.
This commit is contained in:
parent
fe9821722e
commit
b0292fc0de
2 changed files with 6 additions and 9 deletions
|
@ -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…
Reference in a new issue