widgetexplorer: combine 3 for loops into 1

To make the code more efficient.

Merge request reports

Loading