qt4 : remove trailing spaces.