MCPcopy Create free account
hub / github.com/KDE/kdevelop / flushPending

Method flushPending

plugins/debuggercommon/widgets/debuggerconsoleview.cpp:248–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void 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
266void DebuggerConsoleView::clear()
267{

Callers

nothing calls this directly

Calls 4

documentMethod · 0.45
clearMethod · 0.45
setValueMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected