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()),
|
connect(m_taskWindow, SIGNAL(tasksChanged()),
|
||||||
this, SLOT(updateTaskCount()));
|
this, SLOT(updateTaskCount()));
|
||||||
|
|
||||||
|
connect(m_taskWindow, SIGNAL(tasksCleared()),
|
||||||
|
this,SIGNAL(tasksCleared()));
|
||||||
|
|
||||||
connect(&m_progressWatcher, SIGNAL(canceled()),
|
connect(&m_progressWatcher, SIGNAL(canceled()),
|
||||||
this, SLOT(cancel()));
|
this, SLOT(cancel()));
|
||||||
connect(&m_progressWatcher, SIGNAL(finished()),
|
connect(&m_progressWatcher, SIGNAL(finished()),
|
||||||
@@ -283,6 +286,7 @@ void BuildManager::showBuildResults()
|
|||||||
void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task)
|
void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task)
|
||||||
{
|
{
|
||||||
m_taskWindow->addTask(task);
|
m_taskWindow->addTask(task);
|
||||||
|
emit taskAdded(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildManager::addToOutputWindow(const QString &string, const QTextCharFormat &format)
|
void BuildManager::addToOutputWindow(const QString &string, const QTextCharFormat &format)
|
||||||
|
|||||||
@@ -92,6 +92,8 @@ signals:
|
|||||||
void buildStateChanged(ProjectExplorer::Project *pro);
|
void buildStateChanged(ProjectExplorer::Project *pro);
|
||||||
void buildQueueFinished(bool success);
|
void buildQueueFinished(bool success);
|
||||||
void tasksChanged();
|
void tasksChanged();
|
||||||
|
void taskAdded(const ProjectExplorer::Task &task);
|
||||||
|
void tasksCleared();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void addToTaskWindow(const ProjectExplorer::Task &task);
|
void addToTaskWindow(const ProjectExplorer::Task &task);
|
||||||
|
|||||||
@@ -591,6 +591,7 @@ void TaskWindow::clearTasks(const QString &categoryId)
|
|||||||
|
|
||||||
updateActions();
|
updateActions();
|
||||||
emit tasksChanged();
|
emit tasksChanged();
|
||||||
|
emit tasksCleared();
|
||||||
navigateStateChanged();
|
navigateStateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ public:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void tasksChanged();
|
void tasksChanged();
|
||||||
|
void tasksCleared();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void showTaskInFile(const QModelIndex &index);
|
void showTaskInFile(const QModelIndex &index);
|
||||||
|
|||||||
Reference in New Issue
Block a user