Fix QQuickItemParticle timing issues
authorAlan Alpert <alan.alpert@nokia.com>
Mon, 9 Jan 2012 00:26:35 +0000 (10:26 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 9 Jan 2012 04:49:03 +0000 (05:49 +0100)
commit95e720d1b63312e50be3df467973d098c4527b7d
treef9736d9694d8fd1c5d184a698d896bb6581feae1
parent7f0d7f894691d81cbb24d1c2f0f55bed6dc940d0
Fix QQuickItemParticle timing issues

It was possible for m_loadables to be reset before the items were
loaded, and the datum pointer was lost. This was exacerbated by another
bug where reset was called every frame for no reason. Both bugs are now
fixed.

Task-number: QTBUG-23491
Change-Id: I9b60858621b697fc46de1e964cb27ddc0d2dbc65
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/particles/qquickitemparticle.cpp
src/quick/particles/qquickitemparticle_p.h
tests/auto/particles/qquickitemparticle/qquickitemparticle.pro