summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/taskmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/taskmodel.cpp')
-rw-r--r--src/plugins/projectexplorer/taskmodel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.cpp b/src/plugins/projectexplorer/taskmodel.cpp
index edf903ef44..94f2307f9f 100644
--- a/src/plugins/projectexplorer/taskmodel.cpp
+++ b/src/plugins/projectexplorer/taskmodel.cpp
@@ -156,6 +156,16 @@ int TaskModel::rowForId(unsigned int id)
return it - m_tasks.constBegin();
}
+void TaskModel::updateTaskFileName(unsigned int id, const QString &fileName)
+{
+ int i = rowForId(id);
+ QTC_ASSERT(i != -1, return)
+ if (m_tasks.at(i).taskId == id) {
+ m_tasks[i].file = Utils::FileName::fromString(fileName);
+ emit dataChanged(index(i, 0), index(i, 0));
+ }
+}
+
void TaskModel::updateTaskLineNumber(unsigned int id, int line)
{
int i = rowForId(id);