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

Function colorify

plugins/gdb/gdboutputwidget.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185namespace {
186 void colorify(QString& text, const QColor& color)
187 {
188 if (text.endsWith(QLatin1Char('\n'))) {
189 text.chop(1);
190 }
191 text = QLatin1String("<font color=\"") + color.name() + QLatin1String("\">") + text + QLatin1String("</font><br>");
192 }
193}
194
195void GDBOutputWidget::receivedStderrOrLog(const QString& line)

Callers 4

receivedStdoutMethod · 0.85
receivedStderrMethod · 0.85
receivedStderrOrLogMethod · 0.85
newStdoutLineMethod · 0.85

Calls 2

endsWithMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected