aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/processcommandexecutor.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2015-08-07 14:48:14 -0700
committerJake Petroules <jake.petroules@petroules.com>2015-08-13 08:03:09 +0000
commit1b12828b307a0ccfde07aaf29af1fd2314e9126e (patch)
tree9a3342b9a64054b4c0b0363f3e7c97497e1e3009 /src/lib/corelib/buildgraph/processcommandexecutor.cpp
parent6bc6c661a1f3d55b69f73b5e78e8457d6adfc56e (diff)
Add an extendedDescription property for commands.
Defaults to the command line invocation for Commands, and defaults to the description for JavaScriptCommands. Change-Id: I7bddb6591b7fdbffc2c08134f35471c0d2725cf9 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/processcommandexecutor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/processcommandexecutor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/processcommandexecutor.cpp b/src/lib/corelib/buildgraph/processcommandexecutor.cpp
index 87ac1c920..7aeed766d 100644
--- a/src/lib/corelib/buildgraph/processcommandexecutor.cpp
+++ b/src/lib/corelib/buildgraph/processcommandexecutor.cpp
@@ -272,7 +272,10 @@ void ProcessCommandExecutor::onProcessFinished(int exitCode)
void ProcessCommandExecutor::doReportCommandDescription()
{
if (m_echoMode == CommandEchoModeCommandLine) {
- emit reportCommandDescription(command()->highlight(), m_shellInvocation);
+ emit reportCommandDescription(command()->highlight(),
+ !command()->extendedDescription().isEmpty()
+ ? command()->extendedDescription()
+ : m_shellInvocation);
return;
}