MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / updateHighlighter

Method updateHighlighter

src/plugins/git/gui/gitblamewidget.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void GitBlameWidgetPrivate::updateHighlighter()
67{
68 const QSet<QString> changes = annotationChanges();
69 if (changes.isEmpty())
70 return;
71
72 if (highlighter)
73 delete highlighter;
74
75 highlighter = new GitBlameHighlighter(changes);
76 highlighter->setParent(this);
77 highlighter->setDocument(gitEditor->document());
78}
79
80QSet<QString> GitBlameWidgetPrivate::annotationChanges() const
81{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.45
setDocumentMethod · 0.45
documentMethod · 0.45

Tested by

no test coverage detected