summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qsavefile.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.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.h')
-rw-r--r--src/corelib/io/qsavefile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qsavefile.h b/src/corelib/io/qsavefile.h
index 32af4a708e..6d81f58d42 100644
--- a/src/corelib/io/qsavefile.h
+++ b/src/corelib/io/qsavefile.h
@@ -75,6 +75,9 @@ public:
void cancelWriting();
+ void setDirectWriteFallback(bool enabled);
+ bool directWriteFallback() const;
+
protected:
qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE;