diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-04-05 18:24:26 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-04-05 18:24:26 +0200 |
commit | 9ec6e9f7e094eee2eb55c777332c33b7a99f11f0 (patch) | |
tree | 81066a933a52f1988f9cab7d574d2123803846d9 /src/plugins/projectexplorer/taskhub.cpp | |
parent | e6565936e0b820e073927b64a28f9b4c621dbeaa (diff) | |
parent | f521c9f0628fc89ddc41a1584d65369f9c07a2f3 (diff) | |
download | qt-creator-9ec6e9f7e094eee2eb55c777332c33b7a99f11f0.tar.gz |
Merge remote-tracking branch 'origin/2.5'
Diffstat (limited to 'src/plugins/projectexplorer/taskhub.cpp')
-rw-r--r-- | src/plugins/projectexplorer/taskhub.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/taskhub.cpp b/src/plugins/projectexplorer/taskhub.cpp index 613911330f..39ce6a4bd1 100644 --- a/src/plugins/projectexplorer/taskhub.cpp +++ b/src/plugins/projectexplorer/taskhub.cpp @@ -48,6 +48,7 @@ public: bool clickable() const; void clicked(); + void updateFileName(const QString &fileName); void updateLineNumber(int lineNumber); void removedFromEditor(); bool visible() const; @@ -62,6 +63,12 @@ void TaskMark::updateLineNumber(int lineNumber) BaseTextMark::updateLineNumber(lineNumber); } +void TaskMark::updateFileName(const QString &fileName) +{ + ProjectExplorerPlugin::instance()->taskHub()->updateTaskFileName(m_id, fileName); + BaseTextMark::updateFileName(fileName); +} + void TaskMark::removedFromEditor() { ProjectExplorerPlugin::instance()->taskHub()->updateTaskLineNumber(m_id, -1); @@ -122,6 +129,11 @@ void TaskHub::removeTask(const Task &task) emit taskRemoved(task); } +void TaskHub::updateTaskFileName(unsigned int id, const QString &fileName) +{ + emit taskFileNameUpdated(id, fileName); +} + void TaskHub::updateTaskLineNumber(unsigned int id, int line) { emit taskLineNumberUpdated(id, line); |