From b02f6b5d30a81040ad5f4912d689926ddc4da95a Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 12 May 2020 16:26:34 +0200 Subject: ProjectExplorer: Give the Task class an explicit summary We'd like to create more useful tasks from compiler output, that is, try harder to identify consecutive lines that refer to the same issue and create one task for them, rather than one for each line. In such "aggregate" tasks, the first line will not necessarily carry the main information. Therefore, we make it explicit what this main information is by introducing a dedicated summary member. Also streamline the font handling for compile tasks. Change-Id: I933f2643a13c710dab1ab548c56669b129026eb5 Reviewed-by: hjk --- src/plugins/projectexplorer/extracompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/projectexplorer/extracompiler.cpp') diff --git a/src/plugins/projectexplorer/extracompiler.cpp b/src/plugins/projectexplorer/extracompiler.cpp index bfb7164550..1a764712ca 100644 --- a/src/plugins/projectexplorer/extracompiler.cpp +++ b/src/plugins/projectexplorer/extracompiler.cpp @@ -292,7 +292,7 @@ void ExtraCompilerPrivate::updateIssues() const auto fontSettings = TextEditor::TextEditorSettings::instance()->fontSettings(); selection.format = fontSettings.toTextCharFormat(issue.type == Task::Warning ? TextEditor::C_WARNING : TextEditor::C_ERROR); - selection.format.setToolTip(issue.description); + selection.format.setToolTip(issue.description()); selections.append(selection); } -- cgit v1.2.3