| 485 | } |
| 486 | |
| 487 | QString SourceFormatterController::FileFormatter::styleCaption() const |
| 488 | { |
| 489 | Q_ASSERT(m_formatter); |
| 490 | auto styleCaption = m_style.caption(); |
| 491 | if (styleCaption.isEmpty()) { |
| 492 | // This could be an incomplete predefined style, for which only the name is stored in config. |
| 493 | styleCaption = m_formatter->predefinedStyle(m_style.name()).caption(); |
| 494 | } |
| 495 | return styleCaption; |
| 496 | } |
| 497 | |
| 498 | QString SourceFormatterController::FileFormatter::format(const QString& text, const QString& leftContext, |
| 499 | const QString& rightContext) const |
no test coverage detected