Ported source and Cmake to Qt5.