ToolChain: Update projectsmode on tool chain changes

Update the projects mode on tool chain changes.

Task-number: QTCREATORBUG-4431
This commit is contained in:
Tobias Hunger
2011-04-12 10:53:42 +02:00
parent 0565acf300
commit beb999f38a
3 changed files with 11 additions and 0 deletions

View File

@@ -96,6 +96,12 @@ ToolChainManager::ToolChainManager(QObject *parent) :
m_instance = this;
connect(Core::ICore::instance(), SIGNAL(saveSettingsRequested()),
this, SLOT(saveToolChains()));
connect(this, SIGNAL(toolChainAdded(ProjectExplorer::ToolChain*)),
this, SIGNAL(toolChainsChanged()));
connect(this, SIGNAL(toolChainRemoved(ProjectExplorer::ToolChain*)),
this, SIGNAL(toolChainsChanged()));
connect(this, SIGNAL(toolChainUpdated(ProjectExplorer::ToolChain*)),
this, SIGNAL(toolChainsChanged()));
}
void ToolChainManager::restoreToolChains()

View File

@@ -82,6 +82,8 @@ signals:
void toolChainRemoved(ProjectExplorer::ToolChain *);
// Tool chain was updated.
void toolChainUpdated(ProjectExplorer::ToolChain *);
// Something changed:
void toolChainsChanged();
private:
explicit ToolChainManager(QObject *parent = 0);

View File

@@ -114,6 +114,9 @@ Qt4ProjectConfigWidget::Qt4ProjectConfigWidget(Qt4BaseTarget *target)
connect(target->qt4Project(), SIGNAL(buildDirectoryInitialized()),
this, SLOT(updateImportLabel()));
connect(ProjectExplorer::ToolChainManager::instance(), SIGNAL(toolChainsChanged()),
this, SLOT(updateToolChainCombo()));
}
Qt4ProjectConfigWidget::~Qt4ProjectConfigWidget()