fix qt4 compatibility