Replace foreach with C++11 range loops

Replaces all of the old Qt foreach macro with the C++11 range loop, and removes one unnecessary typedef with auto.

Merge request reports

Loading