the internal use of SaveFile ensures that we don't leave truncated pre-existing files behind if the disk is full or something else bad happens. Task-number: QTCREATORBUG-1619