| 222 | |
| 223 | |
| 224 | void 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 | |
| 235 | void StandardDocumentationView::setOverrideCssCode(const QByteArray& cssCode) |
| 236 | { |
nothing calls this directly
no test coverage detected