Replace Qt foreach with C+11 range-based for loop.