aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/vcsbase/baseannotationhighlighter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/baseannotationhighlighter.cpp b/src/plugins/vcsbase/baseannotationhighlighter.cpp
index b95fe6a179..6b3154ab27 100644
--- a/src/plugins/vcsbase/baseannotationhighlighter.cpp
+++ b/src/plugins/vcsbase/baseannotationhighlighter.cpp
@@ -25,6 +25,7 @@
#include "baseannotationhighlighter.h"
#include <texteditor/fontsettings.h>
+#include <texteditor/texteditorsettings.h>
#include <QDebug>
#include <QColor>
@@ -63,8 +64,10 @@ public:
void BaseAnnotationHighlighterPrivate::updateOtherFormats()
{
- m_background = q->formatForCategory(TextEditor::C_TEXT)
- .brushProperty(QTextFormat::BackgroundBrush).color();
+ m_background = TextEditor::TextEditorSettings::fontSettings()
+ .toTextCharFormat(TextEditor::C_TEXT)
+ .brushProperty(QTextFormat::BackgroundBrush)
+ .color();
q->setChangeNumbers(m_changeNumberMap.keys().toSet());
}