ProjectExplorer: Introduce new Task::setFile() method

This method can be useful when need to update a task file later,
after the task creation.

Change-Id: I42419e4c975e8644335a5f33a7bbf9a7c068322f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Denis Shienkov
2019-05-08 00:03:13 +03:00
parent 50b12945b7
commit 086eb4d598
3 changed files with 16 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ void IarParser::amendFilePath()
QString filePath;
while (!m_filePathParts.isEmpty())
filePath.append(m_filePathParts.takeFirst().trimmed());
m_lastTask.file = Utils::FileName::fromUserInput(filePath);
m_lastTask.setFile(Utils::FileName::fromUserInput(filePath));
m_expectFilePath = false;
}