206 qreal fpms = (m_frameRate
208 - m_frameRateVariation) / 1000.0;
209 return qMax(
qreal(0.0) , m_frames / fpms);
211 int mspf = m_frameDuration
213 - m_frameDurationVariation;
214 return qMax(0, m_frames * mspf);
216 qWarning() <<
"Sprite::duration is changing meaning to the full animation duration.";
217 qWarning() <<
"Use Sprite::frameDuration for the old meaning, of per frame duration.";
218 qWarning() <<
"As an interim measure, duration/durationVariation means the same as frameDuration/frameDurationVariation, and you'll get this warning spewed out everywhere to motivate you.";
The QQmlContext class defines a context within a QML engine.