modify code to qt4.7