Fixed Qt4 support