| 329 | } |
| 330 | |
| 331 | QString AStylePlugin::previewText(const SourceFormatterStyle& /*style*/, const QMimeType& mime) const |
| 332 | { |
| 333 | if (mime.inherits(QStringLiteral("text/x-objcsrc")) || mime.inherits(QStringLiteral("text/x-objc++src"))) { |
| 334 | static const QString text = ::previewText(indentingObjCSample(), formattingObjCSample()); |
| 335 | return text; |
| 336 | } else { |
| 337 | static const QString text = ::previewText(indentingCppSample(), formattingCppSample()); |
| 338 | return text; |
| 339 | } |
| 340 | // TODO: add previews for the other supported languages |
| 341 | } |
| 342 | |
| 343 | AStylePlugin::Indentation AStylePlugin::indentation(const SourceFormatterStyle& style, const QUrl& url, |
| 344 | const QMimeType& mime) const |
no test coverage detected