From 93ecd34c323852812f8f74a4fe6d7dad8e43f35a Mon Sep 17 00:00:00 2001 From: Caroline Chao Date: Wed, 18 Sep 2013 11:25:45 +0200 Subject: qmlplugindump: Update the description for the generated file The full command was written in the generated file including the full path to the qmlplugindump tool. Now only the tool name without its full path will be printed with the adjacent arguments. Change-Id: I03aa7350d1cd6b96ce00341796f8944669989793 Reviewed-by: Shawn Rutledge --- tools/qmlplugindump/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index a28fd0096b..472d3f591c 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -843,8 +843,9 @@ int main(int argc, char *argv[]) "// This file describes the plugin-supplied types contained in the library.\n" "// It is used for QML tooling purposes only.\n" "//\n" - "// This file was auto-generated with the command '%1'.\n" - "\n").arg(args.join(QLatin1String(" ")))); + "// This file was auto-generated by:\n" + "// '%1 %2'\n" + "\n").arg(QFileInfo(args.at(0)).fileName()).arg(QStringList(args.mid(1)).join(QLatin1String(" ")))); qml.writeStartObject("Module"); // put the metaobjects into a map so they are always dumped in the same order -- cgit v1.2.3