Use same qxst iteration as elsewhere in the codebase
The foreach approach (for some unknown reason) causes
a link error with msvc. However, it is also not the same
iteration style as e.g. KoXmlReader and many others,
so changing this makes sense anyway.