Fixed for qt4 build