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

Method styleElementWithCode

plugins/manpage/manpagedocumentation.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45private:
46 template <typename Location>
47 static QString styleElementWithCode(const QByteArray& cssCode, const Location& location)
48 {
49 if (cssCode.isEmpty()) {
50 qCWarning(MANPAGE) << "empty CSS file" << location;
51 return QString();
52 }
53 return QString::fromUtf8("<style>" + cssCode + "</style>");
54 }
55
56 /**
57 * Read the file contents and return it wrapped in a &lt;style&gt; HTML element.

Callers

nothing calls this directly

Calls 2

QStringClass · 0.70
isEmptyMethod · 0.45

Tested by

no test coverage detected