Commit b4190ce4 authored by Laurent Montel's avatar Laurent Montel 😁

Make compile without deprecated method

parent 5b7789a5
...@@ -43,7 +43,7 @@ PlayerItem::PlayerItem(Player* p_model, KGameRenderer* renderer) : CharacterItem ...@@ -43,7 +43,7 @@ PlayerItem::PlayerItem(Player* p_model, KGameRenderer* renderer) : CharacterItem
// A timeLine for the Player animation // A timeLine for the Player animation
m_animationTimer = new QTimeLine(); m_animationTimer = new QTimeLine();
m_animationTimer->setCurveShape(QTimeLine::LinearCurve); m_animationTimer->setEasingCurve(QEasingCurve::Linear);
m_animationTimer->setLoopCount(0); m_animationTimer->setLoopCount(0);
m_animationTimer->setFrameRange(0, NB_FRAMES - 1); m_animationTimer->setFrameRange(0, NB_FRAMES - 1);
// Animation speed // Animation speed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment