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

Method newStdoutLine

plugins/gdb/gdboutputwidget.cpp:212–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void GDBOutputWidget::newStdoutLine(const QString& line,
213 bool internal)
214{
215 QString s = line.toHtmlEscaped();
216 if (s.startsWith(QLatin1String("(gdb)")))
217 {
218 colorify(s, m_gdbColor);
219 }
220 else
221 s.replace(QLatin1Char('\n'), QLatin1String("<br>"));
222
223 addFormattedLine(s, internal);
224}
225
226void GDBOutputWidget::addFormattedLine(const QString& line, bool internal)
227{

Callers

nothing calls this directly

Calls 3

colorifyFunction · 0.85
toHtmlEscapedMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected