Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | QSaveFile autotest: restore permissions using RAII | David Faure | 2013-01-17 | 1 | -8/+25 |
| | | | | | | | So that the QTemporaryDir can happen even on error. Change-Id: I728d49eac8bd65e1919fd314a95387949e134de0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> | ||||
* | QSaveFile: test the case of an existing, but readonly, target file. | David Faure | 2013-01-17 | 1 | -2/+23 |
| | | | | | Change-Id: I296d9c2598b8c72e2fd3e6ec80a615364b7eddeb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> | ||||
* | Add class QSaveFile. | David Faure | 2013-01-17 | 2 | -0/+239 |
This QIODevice uses a temporary file for writing, so that in case of write errors, the writing operation is canceled, without losing any existing file. It also avoids having a partially-written file visible by other processes, at the final destination. Change-Id: I9482df45751cb890b1b6f1382ec2eea3eb980627 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> |