summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qsavefile_p.h
diff options
context:
space:
mode:
authorDavid Faure <faure+bluesystems@kde.org>2013-03-24 11:10:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-05 11:04:35 +0200
commitb3a505dc924fb26fcf68bb2016b6f5ea206a946b (patch)
tree2d30bcf1a307de8b6c0b967585e9fd241649286d /src/corelib/io/qsavefile_p.h
parentef061b76b1f4eb4e9657933039873221d6380541 (diff)
QSaveFile: allow saving to a writable file in a non-writable directory
The only way to make this possible is to disable the atomic-rename-from-temp-file behavior. This is not done by default, but only if the application allows this to happen. https://bugs.kde.org/show_bug.cgi?id=312415 Change-Id: I71ce54ae1f7f50ab5e8379f04c0ede74ebe3136d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qsavefile_p.h')
-rw-r--r--src/corelib/io/qsavefile_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qsavefile_p.h b/src/corelib/io/qsavefile_p.h
index 27e687835b..53a8b5eb34 100644
--- a/src/corelib/io/qsavefile_p.h
+++ b/src/corelib/io/qsavefile_p.h
@@ -68,6 +68,9 @@ protected:
QString fileName;
QFileDevice::FileError writeError;
+
+ bool useTemporaryFile;
+ bool directWriteFallback;
};
QT_END_NAMESPACE