From e993df877131cfafbf1a3578dbef233a3041a82f Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 27 Dec 2012 07:42:27 -0500 Subject: 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 --- tests/auto/corelib/io/qsavefile/qsavefile.pro | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/auto/corelib/io/qsavefile/qsavefile.pro (limited to 'tests/auto/corelib/io/qsavefile/qsavefile.pro') 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 -- cgit v1.2.3