Qt 4.8 compatibility