Made the highlighting for virtual methods configurable

This commit is contained in:
Roberto Raggi
2010-08-09 14:34:57 +02:00
parent 3ae8ddf18f
commit 3ab927ed74
3 changed files with 7 additions and 2 deletions

View File

@@ -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();