replace Q_FOREACH loops with newer for (a:b) notation Signed-off-by: Laurent Navet <laurent.navet@gmail.com> REVIEW: 114222