Would be nice to add a comment stating that this should be fixed in qt 5.2, then could be removed when code is not longer compatibility or ifdef can be added here.