forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -99,9 +99,9 @@ private:
|
||||
m_tasks.append({Task::Warning, text.trimmed(), {}, -1, category});
|
||||
} else {
|
||||
Task &task = m_tasks.back();
|
||||
if (!task.description.isEmpty())
|
||||
task.description += ' ';
|
||||
task.description += text.trimmed();
|
||||
if (!task.summary.isEmpty())
|
||||
task.summary += ' ';
|
||||
task.summary += text.trimmed();
|
||||
}
|
||||
} else {
|
||||
// The actual exception. This ends the traceback.
|
||||
|
||||
Reference in New Issue
Block a user