| 93 | } |
| 94 | |
| 95 | static QString readCustomStyleSheet() |
| 96 | { |
| 97 | const auto customStyleSheetFile = QStringLiteral("kdevmanpage/manpagedocumentation.css"); |
| 98 | const QString cssFilePath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, customStyleSheetFile); |
| 99 | if (cssFilePath.isEmpty()) { |
| 100 | qCWarning(MANPAGE) << "couldn't find" << customStyleSheetFile; |
| 101 | return QString(); |
| 102 | } |
| 103 | return readStyleSheet(cssFilePath); |
| 104 | } |
| 105 | |
| 106 | StyleSheetFixer() |
| 107 | : m_customStyleSheet{readCustomStyleSheet()} |