fixes for qthelp index
the attached patch fixes two problems with the qthelp index generator.
1. Classes are properly included in the index
2. in case of two items, ClassX.x and ClassY.x, both ClassX.x and ClassY.y are indexed. Without the patch, only one of them ends up in the index.