aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coco
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2023-01-09 13:14:39 +0100
committerDavid Schulz <david.schulz@qt.io>2023-01-12 10:19:10 +0000
commitbaa1e3c2e15af93804fa0f8b3158b2422f25b585 (patch)
tree6251a540c1e264478fe6f02ec4518f5c173aad41 /src/plugins/coco
parent6415eef6afd9295529be35fbff0bdb66df82e6f6 (diff)
Editor: Allow to hide annotations for a group of text marks
The hiding is not persistent, so on the next Qt Creator start all annotations are visible again. This is meant to quickly get rid of annotations if there are to many irrelevant of a specific kind. Change-Id: I4862e56e0f5624f30aadda26efc9dea672ab1f57 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/coco')
-rw-r--r--src/plugins/coco/cocolanguageclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coco/cocolanguageclient.cpp b/src/plugins/coco/cocolanguageclient.cpp
index 6ed18a5b1d2..8d99e17154e 100644
--- a/src/plugins/coco/cocolanguageclient.cpp
+++ b/src/plugins/coco/cocolanguageclient.cpp
@@ -131,7 +131,7 @@ class CocoTextMark : public TextEditor::TextMark
{
public:
CocoTextMark(const FilePath &fileName, const CocoDiagnostic &diag, const Id &clientId)
- : TextEditor::TextMark(fileName, diag.range().start().line() + 1, clientId)
+ : TextEditor::TextMark(fileName, diag.range().start().line() + 1, {"Coco", clientId})
, m_severity(diag.cocoSeverity())
{
setLineAnnotation(diag.message());