Add support for Qt 5, drop support for Qt 3 and KDE 3.