Restored Qt 4.8.5 compatibility