Qt 4.8 compatibility issue fixed