Replace 2 int based loops with range loops


Pick-to: 6.9
Change-Id: I07ec45018f460636132b057d0bfb2456a1ea1859
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commit99f55a97eb1f15ee7706326ec5bbfe62d1cf1ac0
parentf0dac7c3126aea5289ab140deed7c0623745d0e6
authorMatthias Rauter <matthias.rauter@qt.io>
committerMatthias Rauter <matthias.rauter@qt.io>
commit timeTue, 20 May 2025 08:53:40 +0000