diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2015-08-07 14:48:14 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@petroules.com> | 2015-08-13 08:03:09 +0000 |
commit | 1b12828b307a0ccfde07aaf29af1fd2314e9126e (patch) | |
tree | 9a3342b9a64054b4c0b0363f3e7c97497e1e3009 /src/lib/corelib/buildgraph/jscommandexecutor.cpp | |
parent | 6bc6c661a1f3d55b69f73b5e78e8457d6adfc56e (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/jscommandexecutor.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/jscommandexecutor.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/jscommandexecutor.cpp b/src/lib/corelib/buildgraph/jscommandexecutor.cpp index 232b37a89..914d2c9e1 100644 --- a/src/lib/corelib/buildgraph/jscommandexecutor.cpp +++ b/src/lib/corelib/buildgraph/jscommandexecutor.cpp @@ -166,6 +166,16 @@ JsCommandExecutor::~JsCommandExecutor() m_thread->wait(); } +void JsCommandExecutor::doReportCommandDescription() +{ + if (m_echoMode == CommandEchoModeCommandLine && !command()->extendedDescription().isEmpty()) { + emit reportCommandDescription(command()->highlight(), command()->extendedDescription()); + return; + } + + AbstractCommandExecutor::doReportCommandDescription(); +} + void JsCommandExecutor::waitForFinished() { if (!m_running) |