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

Method setOverrideCssFile

kdevplatform/documentation/standarddocumentationview.cpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223
224void KDevelop::StandardDocumentationView::setOverrideCssFile(const QString& cssFilePath)
225{
226 QFile file(cssFilePath);
227 if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
228 qCWarning(DOCUMENTATION) << "cannot read CSS file" << cssFilePath << ':' << file.error() << file.errorString();
229 return;
230 }
231 const auto cssCode = file.readAll();
232 setOverrideCssCode(cssCode);
233}
234
235void StandardDocumentationView::setOverrideCssCode(const QByteArray& cssCode)
236{

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
errorMethod · 0.45
errorStringMethod · 0.45

Tested by

no test coverage detected