Ensure that LottieAnimation really stops at the requested frame


It can happen that a repaint is already in the queue when the
LottiaAnimation is asked to pause. Since each paint operation would
increase the framenumber, this would change which framenumber was
actually left rendered on screen when the pause started. Fix by
skipping the frame number stepping when pause is enabled.

This helps to ensure deterministic results in the baseline tests.

Change-Id: Ib6255d51b58e3ff7a0552462f23fe54155124e43
Pick-to: 6.10
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit18f31a18e948f5d64ac8380e120b8b696f3c970e
parent90aeb2375df8c44e67a19ef7f442089f793d53a1
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeFri, 22 Aug 2025 13:46:04 +0000