From: Thomas McGuire Date: Tue, 3 Jul 2012 14:13:46 +0000 (+0200) Subject: qmlplugindump: Add comment to file that it was auto-generated X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=937bccd0e108e41eee55489d13af86f1683cfb73;p=konrad%2Fqtdeclarative.git qmlplugindump: Add comment to file that it was auto-generated This prevents people who do not know about this tool from accidentally changing these files by hand. Change-Id: I8ff889b953f7c637f914f8b5b8b07a36f3cdf58f Reviewed-by: Christian Kamm Reviewed-by: Sean Harmer --- diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index 37c2583..ef00b18 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -764,10 +764,12 @@ int main(int argc, char *argv[]) qml.writeStartDocument(); qml.writeLibraryImport(QLatin1String("QtQuick.tooling"), 1, 1); - qml.write("\n" + qml.write(QString("\n" "// This file describes the plugin-supplied types contained in the library.\n" "// It is used for QML tooling purposes only.\n" - "\n"); + "//\n" + "// This file was auto-generated with the command '%1'.\n" + "\n").arg(args.join(QLatin1String(" ")))); qml.writeStartObject("Module"); // put the metaobjects into a map so they are always dumped in the same order