forked from qt-creator/qt-creator
ProjectExplorer: Clear Tasks properly
Reset the Mark and the formating on a call to clear(). Change-Id: Ie100cf79aa36f98600c152293e119bd4f9465b74 Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -98,13 +98,15 @@ bool Task::isNull() const
|
|||||||
void Task::clear()
|
void Task::clear()
|
||||||
{
|
{
|
||||||
taskId = 0;
|
taskId = 0;
|
||||||
|
type = Task::Unknown;
|
||||||
description.clear();
|
description.clear();
|
||||||
file = Utils::FileName();
|
file = Utils::FileName();
|
||||||
line = -1;
|
line = -1;
|
||||||
movedLine = -1;
|
movedLine = -1;
|
||||||
category = Core::Id();
|
category = Core::Id();
|
||||||
type = Task::Unknown;
|
|
||||||
icon = QIcon();
|
icon = QIcon();
|
||||||
|
formats.clear();
|
||||||
|
m_mark.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user