Revert "Make it compile without foreach"

Authored by heikobecker on Mar 6 2019, 2:46 PM.

Description

Revert "Make it compile without foreach"

This reverts commit b29fc1f7bd4ca1ae2da3e161e9b1372ed213563f.

Fails to build on the CI for FreeBSD [1] and effectively raises the
required Frameworks version to 5.57.0, which in general might be a
bit new, considering that it isn't needed for new functionality.
Furthermore 5.57.0 will not be available for 19.04 Beta and RC
releases, but will only be released a few days before 19.04.0.

[1] https://build.kde.org/job/Applications/job/sweeper/job/kf5-qt5%20FreeBSDQt5.12/4/console