Port endl to \n as it's namespaced in Qt5.15.
it's not a problem here as it's a qfile which is flush when it will be deleted