Finished port to qt 5.
Finished port to qt 5.