Add toolChainUpdated signal

Add toolChainUpdated(ToolChain *) to ToolChainManager and make
sure it is triggered in the right places.

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2011-03-24 13:27:26 +01:00
parent 2af168e109
commit 77f83d298e
10 changed files with 78 additions and 10 deletions

View File

@@ -207,6 +207,13 @@ ToolChain *ToolChainManager::findToolChain(const QString &id) const
return 0;
}
void ToolChainManager::notifyAboutUpdate(ProjectExplorer::ToolChain *tc)
{
if (!tc || !m_d->m_toolChains.contains(tc))
return;
emit toolChainUpdated(tc);
}
void ToolChainManager::registerToolChain(ToolChain *tc)
{
if (!tc || m_d->m_toolChains.contains(tc))