Fix update logic in updateBoundingBoxes()


Avoid removing one and one item from the list being updated, just
iterate through and clear it once done. This was popping up during
profiling.

Pick-to: 6.11
Change-Id: I8cbe67048fdae27266d3aca8bf4d7f7b3369ccc3
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
commit19b8bbf4f9ebb1c35c3b39cee16b598563a29f52
parenta6d1bb2f1aa05c9278003af0e43d3fe61c2fd7af
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeMon, 4 May 2026 16:55:56 +0000