forked from qt-creator/qt-creator
Add more signals to BuildManager.
Enabling other plugins to know which tasks currently exist.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user