qt5 upgrade

The Q_WS* macros were deprecated in Qt5, replaced with Q_OS_MAC. This will compile but will ignore the code in the ifdef block --