Customizable doxy formats.

This commit is contained in:
Roberto Raggi
2009-02-20 12:08:34 +01:00
parent 5bf1f27e20
commit 8002b1a94c
5 changed files with 12 additions and 5 deletions

View File

@@ -329,10 +329,8 @@ void CppHighlighter::highlightDoxygenComment(const QString &text, int position,
const QChar *uc = text.unicode();
const QChar *it = uc + position;
QTextCharFormat format = m_formats[CppCommentFormat];
QTextCharFormat kwFormat = format;
kwFormat.setFontWeight(QFont::Bold);
kwFormat.setUnderlineStyle(QTextCharFormat::SingleUnderline);
const QTextCharFormat &format = m_formats[CppDoxygenCommentFormat];
const QTextCharFormat &kwFormat = m_formats[CppDoxygenTagFormat];
while (! it->isNull()) {
if (it->unicode() == QLatin1Char('\\') ||