aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/jscommandexecutor.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/jscommandexecutor.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/jscommandexecutor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/jscommandexecutor.cpp10
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)