Added compability with qt4