Details
-
Sub-task
-
Resolution: Fixed
-
Not Evaluated
-
None
-
-
1610bb8ff (master), a50bc70b8 (master), 52e0863bd (master), 3f1a381c5 (master), ff46a9a8e (master), bc2faebe0 (master)
Description
When designing the Loop functionality, take the following requirements into account:
- Iteration index (part of Iterator)
- Index of int or qint64 value, possibly optional, as it may not be relevant for Foreach with an infinite number of iterations
- Forever
- Like while(true)
- Until (dynamic condition)
- Like while(condition())
- Simple repeater with static number of iterations
- e.g. Repeat(5)
- The repeater with dynamic number of iterations
- The exact number must be set in iterator's init handler, i.e. when init is called, the condition handler is returned
- General Loop element, taking an iterator with init and condition handlers (would increment handler be also needed?)
- Placed in Group as GroupItem
- Support iterators with unknown number of iterations, like Utils::FileContainer with Utils::FileContainerIterator
Attachments
For Gerrit Dashboard: QTCREATORBUG-30081 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
528198,22 | TaskTree: Prepare infrastructure for iterators | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
528657,15 | TaskTree: Handle progress inside iterations | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
528805,30 | TaskTree: Implement simple Loop functionality | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
529236,12 | TaskTree: Add tests for Loop functionality | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
529244,13 | TaskTree: Reuse Repeat element in ImageScaling example | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
529245,12 | TaskTree: Reuse Repeat element in DataExchange example | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |