Allow compilation against Qt < 4.7 again