debugger: some color for time stamps in log output

This commit is contained in:
hjk
2009-07-06 09:54:24 +02:00
parent d430a4123b
commit c58ba01148
3 changed files with 8 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ static QChar charForChannel(int channel)
case LogInput: return '<';
case LogOutput: return '>';
case LogStatus: return 's';
case LogTime: return 't';
case LogMisc:
default: return ' ';
}
@@ -79,6 +80,7 @@ static LogChannel channelForChar(QChar c)
case '<': return LogInput;
case '>': return LogOutput;
case 's': return LogStatus;
case 't': return LogTime;
default: return LogMisc;
}
}
@@ -117,6 +119,10 @@ private:
format.setForeground(Qt::red);
setFormat(1, text.size(), format);
break;
case LogTime:
format.setForeground(Qt::darkRed);
setFormat(1, text.size(), format);
break;
default:
break;
}