Made compilable with qt4 and qt5 with the same source