VCS: Make commands in output window bold again

Most likely broken by 639017783a

While at it, also fix the comment that exactly
states this format.

Change-Id: I8f1ad5a4009ca0cb0d9828bca63e8edf8b6cd5a8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2019-03-30 09:12:30 +01:00
committed by André Hartmann
parent a89a885b2c
commit 335d277731
2 changed files with 3 additions and 1 deletions

View File

@@ -247,6 +247,8 @@ void OutputWindowPlainTextEdit::appendLinesWithStyle(QString const& s, enum VcsO
void OutputWindowPlainTextEdit::setFormat(enum VcsOutputWindow::MessageStyle style) void OutputWindowPlainTextEdit::setFormat(enum VcsOutputWindow::MessageStyle style)
{ {
m_formatter->setBoldFontEnabled(style == VcsOutputWindow::Command);
switch (style) { switch (style) {
case VcsOutputWindow::Warning: case VcsOutputWindow::Warning:
m_format = LogMessageFormat; m_format = LogMessageFormat;

View File

@@ -74,7 +74,7 @@ public:
None, None,
Error, // Red error text Error, // Red error text
Warning, // Dark yellow warning text Warning, // Dark yellow warning text
Command, // A bold command with timetamp "10:00 " + "Executing: vcs -diff" Command, // A bold command with timestamp "10:00 " + "Executing: vcs -diff"
Message, // A blue message text (e.g. "command has finished successfully") Message, // A blue message text (e.g. "command has finished successfully")
}; };