qt: add license header to source files

Closes #839