Added support of hidpi resolutions (retina displays) on mac with qt4

Adding support for retina displays on mac os x.
Tested on Macbook pro, Mac os X 10.9 with Qt 4.8.6 - works fine.