Qt 5.1 compatibility