[Qt] style-police, add missing license headers

- add missing license headers in Mac files
- small code formating cleanups
Merge pull request #3433

6c1bf19 [Qt] style-police, add missing license headers (Philip Kaufmann)