another fix for qt 4.7
improved some macro