From c5873fb3ea6c109eda30cedc8ea39700c75b88d7 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 14 Jul 2016 10:17:22 -0700 Subject: 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 --- src/lib/corelib/tools/tools.pri | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/corelib/tools/tools.pri') 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 \ -- cgit v1.2.3