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

Method previewText

plugins/astyle/astyle_plugin.cpp:331–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331QString 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
343AStylePlugin::Indentation AStylePlugin::indentation(const SourceFormatterStyle& style, const QUrl& url,
344 const QMimeType& mime) const

Callers 1

updatePreviewMethod · 0.45

Calls 5

previewTextFunction · 0.85
indentingObjCSampleFunction · 0.85
formattingObjCSampleFunction · 0.85
indentingCppSampleFunction · 0.85
formattingCppSampleFunction · 0.85

Tested by

no test coverage detected