summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/projectexplorer/buildmanager.cpp4
-rw-r--r--src/plugins/projectexplorer/buildmanager.h2
-rw-r--r--src/plugins/projectexplorer/taskwindow.cpp1
-rw-r--r--src/plugins/projectexplorer/taskwindow.h1
4 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/buildmanager.cpp b/src/plugins/projectexplorer/buildmanager.cpp
index 272e38e0be..099839052d 100644
--- a/src/plugins/projectexplorer/buildmanager.cpp
+++ b/src/plugins/projectexplorer/buildmanager.cpp
@@ -100,6 +100,9 @@ BuildManager::BuildManager(ProjectExplorerPlugin *parent)
connect(m_taskWindow, SIGNAL(tasksChanged()),
this, SLOT(updateTaskCount()));
+ connect(m_taskWindow, SIGNAL(tasksCleared()),
+ this,SIGNAL(tasksCleared()));
+
connect(&m_progressWatcher, SIGNAL(canceled()),
this, SLOT(cancel()));
connect(&m_progressWatcher, SIGNAL(finished()),
@@ -283,6 +286,7 @@ void BuildManager::showBuildResults()
void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task)
{
m_taskWindow->addTask(task);
+ emit taskAdded(task);
}
void BuildManager::addToOutputWindow(const QString &string, const QTextCharFormat &format)
diff --git a/src/plugins/projectexplorer/buildmanager.h b/src/plugins/projectexplorer/buildmanager.h
index 648790b0f0..9332a58c27 100644
--- a/src/plugins/projectexplorer/buildmanager.h
+++ b/src/plugins/projectexplorer/buildmanager.h
@@ -92,6 +92,8 @@ signals:
void buildStateChanged(ProjectExplorer::Project *pro);
void buildQueueFinished(bool success);
void tasksChanged();
+ void taskAdded(const ProjectExplorer::Task &task);
+ void tasksCleared();
private slots:
void addToTaskWindow(const ProjectExplorer::Task &task);
diff --git a/src/plugins/projectexplorer/taskwindow.cpp b/src/plugins/projectexplorer/taskwindow.cpp
index d01dd1a87d..5f5193a05a 100644
--- a/src/plugins/projectexplorer/taskwindow.cpp
+++ b/src/plugins/projectexplorer/taskwindow.cpp
@@ -591,6 +591,7 @@ void TaskWindow::clearTasks(const QString &categoryId)
updateActions();
emit tasksChanged();
+ emit tasksCleared();
navigateStateChanged();
}
diff --git a/src/plugins/projectexplorer/taskwindow.h b/src/plugins/projectexplorer/taskwindow.h
index 7c8d6101b6..05dbab1570 100644
--- a/src/plugins/projectexplorer/taskwindow.h
+++ b/src/plugins/projectexplorer/taskwindow.h
@@ -129,6 +129,7 @@ public:
signals:
void tasksChanged();
+ void tasksCleared();
private slots:
void showTaskInFile(const QModelIndex &index);