MCPcopy Create free account
hub / github.com/KDAB/GammaRay / setFileName

Method setFileName

ui/codeeditor/codeeditor.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53CodeEditor::~CodeEditor() = default;
54
55void CodeEditor::setFileName(const QString &fileName)
56{
57#ifdef HAVE_SYNTAX_HIGHLIGHTING
58 ensureHighlighterExists();
59 const auto def = s_repository->definitionForFileName(fileName);
60 m_highlighter->setDefinition(def);
61#else
62 Q_UNUSED(fileName);
63#endif
64}
65
66void CodeEditor::setSyntaxDefinition(const QString &syntaxName)
67{

Callers 4

showInProcessUiMethod · 0.80
resourceSelectedMethod · 0.80
foreachFunction · 0.80

Calls 1

setDefinitionMethod · 0.80

Tested by 2

foreachFunction · 0.64