ListIterator: Introduce an overload accepting a QList<T> getter


Introduce an overload taking a function returning QList<T>.
The function is going to be called just once by the running task tree
when the Group containing the iterator is entered.
All relevant storages and parent iterators are activated during
the call.

This is going to be useful when iterating over nested loops.
The inner loop may conveniently iterate over outer's current value.
See NestedLazyList test.

Change-Id: I7ad9602ac5f01a93ecd835187593ee3d03665660
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit5b05b6b80dc6ea95bd6d9feb2f9433549a5aa03d
parentdc2b3d1e4e4d963151963cf3149e677702bf24e7
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeMon, 1 Jun 2026 19:33:22 +0000