Such QT5

Now works with QT5.
This patch was needed to get this to work on Arch linux. (Or any other distro which has QT5)
Tried to be nice and added #if:s on most changes.

Accepting doge donations to DA86ivrqsaMW5ihS3Z4EKJQsrmMbTcP1yA