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:
Tobias Hunger
2016-04-11 13:25:12 +02:00
parent 0788ec7f48
commit 2e020d5007

View File

@@ -98,13 +98,15 @@ bool Task::isNull() const
void Task::clear()
{
taskId = 0;
type = Task::Unknown;
description.clear();
file = Utils::FileName();
line = -1;
movedLine = -1;
category = Core::Id();
type = Task::Unknown;
icon = QIcon();
formats.clear();
m_mark.clear();
}
//