diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-07-14 10:17:22 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-08-22 16:42:15 +0000 |
commit | c5873fb3ea6c109eda30cedc8ea39700c75b88d7 (patch) | |
tree | 4b9c5d607f2b720592073f41cf9e133e1b869b18 /src/lib/corelib/tools/tools.pri | |
parent | 323a52542f4e1a670f838082e1d88f0fdbf155da (diff) |
Introduce FileSaver
This utility class is a wrapper around QSaveFile which *only* writes its output
to disk if the written file contents would differ from the existing file contents.
This is intended for use by IDE generators which will "write out" generated
project files on every build without causing unnecessary reloads due to
externally changed project files.
Change-Id: Id7abe6d2d98a9199047d090496c359c40c0319cf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/tools.pri')
-rw-r--r-- | src/lib/corelib/tools/tools.pri | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/tools.pri b/src/lib/corelib/tools/tools.pri index 585985406..7bcf60516 100644 --- a/src/lib/corelib/tools/tools.pri +++ b/src/lib/corelib/tools/tools.pri @@ -10,6 +10,7 @@ HEADERS += \ $$PWD/error.h \ $$PWD/executablefinder.h \ $$PWD/fileinfo.h \ + $$PWD/filesaver.h \ $$PWD/filetime.h \ $$PWD/generateoptions.h \ $$PWD/id.h \ @@ -54,6 +55,7 @@ SOURCES += \ $$PWD/error.cpp \ $$PWD/executablefinder.cpp \ $$PWD/fileinfo.cpp \ + $$PWD/filesaver.cpp \ $$PWD/generateoptions.cpp \ $$PWD/id.cpp \ $$PWD/jsliterals.cpp \ |