forked from qt-creator/qt-creator
Highlight the virtual methods.
This commit is contained in:
@@ -968,6 +968,9 @@ void CPPEditor::highlightTypeUsages(int from, int to)
|
||||
Q_ASSERT(!chunks.isEmpty());
|
||||
QTextBlock b = doc->findBlockByNumber(m_nextHighlightBlockNumber);
|
||||
|
||||
QTextCharFormat virtualMethodFormat; // ### hardcoded;
|
||||
virtualMethodFormat.setFontItalic(true);
|
||||
|
||||
QMapIterator<int, QVector<SemanticInfo::Use> > it(chunks);
|
||||
while (b.isValid() && it.hasNext()) {
|
||||
it.next();
|
||||
@@ -997,6 +1000,10 @@ void CPPEditor::highlightTypeUsages(int from, int to)
|
||||
formatRange.format = m_localFormat;
|
||||
break;
|
||||
|
||||
case SemanticInfo::Use::VirtualMethod:
|
||||
formatRange.format = virtualMethodFormat;
|
||||
break;
|
||||
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user