Show
Ignore:
Timestamp:
08/11/08 10:03:58 (5 months ago)
Author:
liamstask
Message:

- adding some coloration to build log output to help skimming it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mcbuilder/trunk/src/BuildLog.cpp

    r684 r806  
    3838void BuildLog::append(QString msg) 
    3939{ 
     40  if(msg.startsWith("*****************")) 
     41    fmt.setForeground(Qt::black); 
     42  else 
     43    fmt.setForeground(QColor(75, 75, 75)); // gray 
     44   
     45  if(!msg.endsWith("\n")) // for some reason, block coloring only seems to happen with new lines...shrug 
     46    msg.append("\n"); 
     47   
     48  logConsole->textCursor().setBlockCharFormat(fmt); 
    4049  logConsole->appendPlainText(msg); 
     50   
    4151  // scroll to the bottom 
    4252  logConsole->moveCursor(QTextCursor::End);