Commit e2caf235 authored by Gunnar Sletta's avatar Gunnar Sletta Committed by Qt by Nokia

Skip warning on perfectly valid usecase

Change-Id: I83fdd2e7c569ebdfea0d21439b4db6d37c1eafa2
Reviewed-by: default avatarAlan Alpert <alan.alpert@nokia.com>
parent 59019433
......@@ -284,23 +284,17 @@ QQuickParticleExtruder* QQuickParticleEmitter::effectiveExtruder()
void QQuickParticleEmitter::pulse(int milliseconds)
{
if (!particleCount())
qWarning() << "pulse called on an emitter with a particle count of zero";
if (!m_enabled)
m_pulseLeft = milliseconds;
}
void QQuickParticleEmitter::burst(int num)
{
if (!particleCount())
qWarning() << "burst called on an emitter with a particle count of zero";
m_burstQueue << qMakePair(num, QPointF(x(), y()));
}
void QQuickParticleEmitter::burst(int num, qreal x, qreal y)
{
if (!particleCount())
qWarning() << "burst called on an emitter with a particle count of zero";
m_burstQueue << qMakePair(num, QPointF(x, y));
}
......
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