| 119 | } |
| 120 | |
| 121 | void QCodeEditor::setSyntaxStyle(QSyntaxStyle *style) |
| 122 | { |
| 123 | m_syntaxStyle = style; |
| 124 | |
| 125 | m_framedAttribute->setSyntaxStyle(m_syntaxStyle); |
| 126 | m_lineNumberArea->setSyntaxStyle(m_syntaxStyle); |
| 127 | |
| 128 | if (m_highlighter) |
| 129 | { |
| 130 | m_highlighter->setSyntaxStyle(m_syntaxStyle); |
| 131 | } |
| 132 | |
| 133 | updateStyle(); |
| 134 | } |
| 135 | |
| 136 | void QCodeEditor::updateStyle() |
| 137 | { |
no outgoing calls
no test coverage detected