forked from qt-creator/qt-creator
ProjectExplorer: Allow to add Tasks without TextMarks
This is needed for the Clang Code Model that will also put the diagnostics into the issues pane. Because the Clang Code Model sets its own TextMarks, duplications are avoided. Change-Id: I668a271096cbcad44f03ad49c007ca1a18abc53c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -57,8 +57,8 @@ unsigned int Task::s_nextId = 1;
|
||||
|
||||
Task::Task(TaskType type_, const QString &description_,
|
||||
const Utils::FileName &file_, int line_, Core::Id category_,
|
||||
const Utils::FileName &iconFile) :
|
||||
taskId(s_nextId), type(type_), description(description_),
|
||||
const Utils::FileName &iconFile, bool addTextMark) :
|
||||
taskId(s_nextId), type(type_), addTextMark(addTextMark), description(description_),
|
||||
file(file_), line(line_), movedLine(line_), category(category_),
|
||||
icon(iconFile.isEmpty() ? taskTypeIcon(type_) : QIcon(iconFile.toString()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user