Qt UI: delete unused code
Qt UI: small code refactoring: Qt specific macros instead of WIN32
Qt UI: few fixes for Mac OS X:
* Now program is minimized into dock instead of system tray
  when close or hide button is clicked. (issue 1351)
* Now program is minimized into dock instead of system tray
  on start if related option is turned on. (issue 1270)