MCPcopy Create free account
hub / github.com/KDE/kdevelop / styleCaption

Method styleCaption

kdevplatform/shell/sourceformattercontroller.cpp:487–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487QString 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
498QString SourceFormatterController::FileFormatter::format(const QString& text, const QString& leftContext,
499 const QString& rightContext) const

Callers 1

Calls 4

captionMethod · 0.45
isEmptyMethod · 0.45
predefinedStyleMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected