| 343 | } |
| 344 | |
| 345 | void DebuggerConsoleView::receivedStderr(const QString& line) |
| 346 | { |
| 347 | QString colored = toHtmlEscaped(line); |
| 348 | colorify(colored, m_errorColor); |
| 349 | |
| 350 | // Errors are shown inside user commands too. |
| 351 | m_allOutput.append(colored); |
| 352 | trimList(m_allOutput, m_maxLines); |
| 353 | |
| 354 | m_userOutput.append(colored); |
| 355 | trimList(m_userOutput, m_maxLines); |
| 356 | |
| 357 | appendLine(colored); |
| 358 | } |
| 359 | |
| 360 | void DebuggerConsoleView::trimList(QStringList& l, int max_size) |
| 361 | { |