revert configuration both for qt4 and qt5