Replaced all Q_FOREACH uses with C++11 for (x : y)

Authored by tleupold on Apr 10 2020, 9:21 AM.