Commit 6fb60206 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Daniel Teske

BuildManager: Display times for build messages

Task-number: QTCREATORBUG-6426
Change-Id: I253b005c1e0af093342a5b8315086c007138b764
Reviewed-by: default avatarDaniel Teske <>
parent 24fc6185
......@@ -52,6 +52,7 @@
#include <utils/qtcassert.h>
#include <QtCore/QDir>
#include <QtCore/QTime>
#include <QtCore/QTimer>
#include <QtCore/QMetaType>
#include <QtCore/QList>
......@@ -355,7 +356,12 @@ void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task)
void BuildManager::addToOutputWindow(const QString &string, BuildStep::OutputFormat format,
BuildStep::OutputNewlineSetting newLineSetting)
QString stringToWrite = string;
QString stringToWrite;
if (format == BuildStep::MessageOutput || format == BuildStep::ErrorMessageOutput) {
stringToWrite = QTime::currentTime().toString();
stringToWrite += QLatin1String(": ");
stringToWrite += string;
if (newLineSetting == BuildStep::DoAppendNewline)
stringToWrite += QLatin1Char('\n');
d->m_outputWindow->appendText(stringToWrite, format);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment