Actually propagate targetinformationchanged signal

* Fixes RunConfigurations not updating when changing something
   in the BuildConfiguration.

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2010-02-16 13:05:32 +01:00
parent 261966dbb7
commit bb20672a63
2 changed files with 10 additions and 0 deletions

View File

@@ -412,6 +412,8 @@ void Qt4Target::onAddedBuildConfiguration(ProjectExplorer::BuildConfiguration *b
Q_ASSERT(qt4bc);
connect(qt4bc, SIGNAL(buildDirectoryInitialized()),
this, SIGNAL(buildDirectoryInitialized()));
connect(qt4bc, SIGNAL(targetInformationChanged()),
this, SLOT(changeTargetInformation()));
}
void Qt4Target::slotUpdateDeviceInformation()
@@ -422,6 +424,13 @@ void Qt4Target::slotUpdateDeviceInformation()
}
}
void Qt4Target::changeTargetInformation()
{
Qt4BuildConfiguration * bc = qobject_cast<Qt4BuildConfiguration *>(sender());
if (bc && bc == activeBuildConfiguration())
emit targetInformationChanged();
}
void Qt4Target::updateToolTipAndIcon()
{
if (const S60DeviceRunConfiguration *s60DeviceRc = qobject_cast<S60DeviceRunConfiguration *>(activeRunConfiguration())) {