diff options
author | David Faure <faure@kde.org> | 2012-12-27 07:42:27 -0500 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-17 17:39:11 +0100 |
commit | e993df877131cfafbf1a3578dbef233a3041a82f (patch) | |
tree | 4913597e2253c029b955a7bd2e0ba1c27f43bc43 /tests/auto/corelib/io/qsavefile/qsavefile.pro | |
parent | e3a10e15ff5a015de28528b5f73316d7aa0de116 (diff) |
Add class QSaveFile.
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>
Diffstat (limited to 'tests/auto/corelib/io/qsavefile/qsavefile.pro')
-rw-r--r-- | tests/auto/corelib/io/qsavefile/qsavefile.pro | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qsavefile/qsavefile.pro b/tests/auto/corelib/io/qsavefile/qsavefile.pro new file mode 100644 index 0000000000..36db000fa7 --- /dev/null +++ b/tests/auto/corelib/io/qsavefile/qsavefile.pro @@ -0,0 +1,5 @@ +CONFIG += testcase parallel_test +TARGET = tst_qsavefile +QT = core testlib +SOURCES = tst_qsavefile.cpp +TESTDATA += tst_qsavefile.cpp |