| 137 | } |
| 138 | |
| 139 | QString SourceFormatterStyle::modeForMimetype(const QMimeType& mime) const |
| 140 | { |
| 141 | const auto mimeTypes = this->mimeTypes(); |
| 142 | for (const auto& item : mimeTypes) { |
| 143 | if (mime.inherits(item.mimeType)) { |
| 144 | return item.highlightMode; |
| 145 | } |
| 146 | } |
| 147 | return QString(); |
| 148 | } |
| 149 | |
| 150 | void SourceFormatterStyle::copyDataFrom(const SourceFormatterStyle& other) |
| 151 | { |
no test coverage detected