added qt4 compatability