diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-05-12 16:26:34 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-05-14 08:23:59 +0000 |
commit | b02f6b5d30a81040ad5f4912d689926ddc4da95a (patch) | |
tree | afc214dcbbaa8331c096e0f04489e28ced5898ab /src/plugins/projectexplorer/extracompiler.cpp | |
parent | e35f945758e46051a85c7d33a91eedcf31f5d98a (diff) |
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 <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/extracompiler.cpp')
-rw-r--r-- | src/plugins/projectexplorer/extracompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |