Commit 9a2814d6 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

introduce separate output format for windows debug channel

parent 8a4a7b71
......@@ -39,6 +39,7 @@ enum OutputFormat
{
NormalMessageFormat,
ErrorMessageFormat,
DebugFormat,
StdOutFormat,
StdErrFormat,
StdOutFormatSameLine,
......
......@@ -117,6 +117,9 @@ void OutputFormatter::initFormats()
m_formats[StdErrFormat].setFont(m_font);
m_formats[StdErrFormat].setForeground(mixColors(p.color(QPalette::Text), QColor(Qt::red)));
m_formats[StdErrFormatSameLine] = m_formats[StdErrFormat];
m_formats[DebugFormat].setFont(m_font);
m_formats[DebugFormat].setForeground(mixColors(p.color(QPalette::Text), QColor(Qt::magenta)));
}
void OutputFormatter::handleLink(const QString &href)
......
......@@ -167,9 +167,9 @@ enum LogChannel
LogTime, // Used for time stamp messages
LogDebug,
LogMisc,
AppOutput,
AppError,
AppStuff,
AppOutput, // stdout
AppError, // stderr
AppStuff, // (possibly) windows debug channel
StatusBar, // LogStatus and also put to the status bar
ScriptConsoleOutput
};
......
......@@ -304,7 +304,7 @@ void DebuggerRunControl::showMessage(const QString &msg, int channel)
appendMessage(msg, Utils::StdErrFormatSameLine);
break;
case AppStuff:
appendMessage(msg, Utils::NormalMessageFormat);
appendMessage(msg, Utils::DebugFormat);
break;
}
}
......
......@@ -134,7 +134,7 @@ void ApplicationLauncher::appendProcessMessage(const QString &output, bool onStd
void ApplicationLauncher::readWinDebugOutput(const QString &output)
{
emit appendMessage(output, Utils::StdErrFormat);
emit appendMessage(output, Utils::DebugFormat);
}
void ApplicationLauncher::processStopped()
......
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