Restore some Qt4 compatibility