Qt5 fixes

Basically remove old Qt3 support code that's still around as it's finally removed in Qt5. This paves the way for compiling with Qt5.

All code here was directly mapped to Qt5-compatible replacements, so this shouldn't require much testing.