forked from qt-creator/qt-creator
Give the values of BuildStep::OutputFormat better names
The old ones did not convey their meaning very well. In particular, NormalOutput and MessageOutput were easily confused. Change-Id: Ia0a8c1b1c366ab3f5c59f751b37b8b1f68f6831d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -254,18 +254,18 @@ void CompileOutputWindow::appendText(const QString &text, BuildStep::OutputForma
|
||||
Theme *theme = Utils::creatorTheme();
|
||||
QTextCharFormat textFormat;
|
||||
switch (format) {
|
||||
case BuildStep::NormalOutput:
|
||||
case BuildStep::OutputFormat::Stdout:
|
||||
textFormat.setForeground(theme->color(Theme::TextColorNormal));
|
||||
textFormat.setFontWeight(QFont::Normal);
|
||||
break;
|
||||
case BuildStep::ErrorOutput:
|
||||
case BuildStep::OutputFormat::Stderr:
|
||||
textFormat.setForeground(theme->color(Theme::OutputPanes_ErrorMessageTextColor));
|
||||
textFormat.setFontWeight(QFont::Normal);
|
||||
break;
|
||||
case BuildStep::MessageOutput:
|
||||
case BuildStep::OutputFormat::NormalMessage:
|
||||
textFormat.setForeground(theme->color(Theme::OutputPanes_MessageOutput));
|
||||
break;
|
||||
case BuildStep::ErrorMessageOutput:
|
||||
case BuildStep::OutputFormat::ErrorMessage:
|
||||
textFormat.setForeground(theme->color(Theme::OutputPanes_ErrorMessageTextColor));
|
||||
textFormat.setFontWeight(QFont::Bold);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user