MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setHighlighter

Method setHighlighter

lib/QCodeEditor/src/internal/QCodeEditor.cpp:100–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void QCodeEditor::setHighlighter(QStyleSyntaxHighlighter *highlighter)
101{
102 if (m_highlighter)
103 {
104 m_highlighter->setDocument(nullptr);
105 }
106
107 m_highlighter = highlighter;
108
109 if (m_highlighter)
110 {
111 m_highlighter->setSyntaxStyle(m_syntaxStyle);
112 m_highlighter->setDocument(document());
113 }
114}
115
116QStyleSyntaxHighlighter *QCodeEditor::highlighter() const
117{

Callers 9

setupWidgetsMethod · 0.80
performConnectionsMethod · 0.80
applyLanguageMethod · 0.80
OutputCodeEditorMethod · 0.80
PainterCodeEditorMethod · 0.80
applyLanguageMethod · 0.80
JsCodeEditorMethod · 0.80
setLanguageMethod · 0.80
ControlScriptEditorMethod · 0.80

Calls 1

setSyntaxStyleMethod · 0.45

Tested by

no test coverage detected