Global
- replaced Qt's foreach by C++11's range-based for