QQuickAnimatedImage: reset the loop count when reloading


When the image is reloaded, e.g. because the cache property or the
device pixel ratio changed, a new movie is created, which starts from
the first frame. But the loop count wasn't reset, so the reloaded
animation played fewer loops than requested before finishing.

Reset the loop count and the last frame number when a new movie is set.

Pick-to: 6.12
Change-Id: Ib0801b3f4b99a8fd7b9f1dc1a376ae9965b31b05
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit3f0a6e7c5284adbef61337f95f9daf4ce56868ba
parent5fcde819f2aba847c47208f50635aecf5083e1e6
authorVladimir Belyavsky <belyavskyv@gmail.com>
committerVladimir Belyavsky <belyavskyv@gmail.com>
commit timeThu, 22 Oct 2026 10:06:54 +0000