changes for qt4/5