Skip to content
Snippets Groups Projects
Commit 6fdfc659 authored by dt's avatar dt
Browse files

Add more signals to BuildManager.

Enabling other plugins to know which tasks currently exist.
parent b61c3769
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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);
......
......@@ -591,6 +591,7 @@ void TaskWindow::clearTasks(const QString &categoryId)
updateActions();
emit tasksChanged();
emit tasksCleared();
navigateStateChanged();
}
......
......@@ -129,6 +129,7 @@ public:
signals:
void tasksChanged();
void tasksCleared();
private slots:
void showTaskInFile(const QModelIndex &index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment