forked from qt-creator/qt-creator
Made the highlighting for virtual methods configurable
This commit is contained in:
@@ -1742,8 +1742,7 @@ void CPPEditor::setFontSettings(const TextEditor::FontSettings &fs)
|
||||
m_localFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_LOCAL));
|
||||
m_fieldFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_FIELD));
|
||||
m_keywordFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_KEYWORD));
|
||||
|
||||
m_virtualMethodFormat.setFontItalic(true); // ### hardcoded
|
||||
m_virtualMethodFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_VIRTUAL_METHOD));
|
||||
|
||||
// only set the background, we do not want to modify foreground properties set by the syntax highlighter or the link
|
||||
m_occurrencesFormat.clearForeground();
|
||||
|
||||
Reference in New Issue
Block a user