| 246 | } |
| 247 | |
| 248 | void DebuggerConsoleView::flushPending() |
| 249 | { |
| 250 | m_textView->setUpdatesEnabled(false); |
| 251 | |
| 252 | QTextDocument *document = m_textView->document(); |
| 253 | QTextCursor cursor(document); |
| 254 | cursor.movePosition(QTextCursor::End); |
| 255 | cursor.insertHtml(m_pendingOutput); |
| 256 | m_pendingOutput.clear(); |
| 257 | |
| 258 | m_textView->verticalScrollBar()->setValue(m_textView->verticalScrollBar()->maximum()); |
| 259 | m_textView->setUpdatesEnabled(true); |
| 260 | m_textView->update(); |
| 261 | if (m_cmdEditorHadFocus) { |
| 262 | m_cmdEditor->setFocus(); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | void DebuggerConsoleView::clear() |
| 267 | { |