use Q_FOREACH in this branch
we still need to build on Qt 5.6 here, where qAsConst isn't available yet