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

Authored by tleupold on Feb 10 2020, 1:29 PM.

Description

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

Also updated the Copyright headers.

I also had to run clang-format, which caused other formatting changes,
otherwise, git commit wouldn't have accpedted it ...