diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-02-16 13:05:32 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-02-16 13:18:26 +0100 |
commit | bb20672a630f183c4050e8340a4ff6e1f1519e71 (patch) | |
tree | 287fda649e72cb0169b0100d27c1a2cd04c68d8e /src/plugins/qt4projectmanager/qt4target.cpp | |
parent | 261966dbb73fec54ed1a460f88cf44e1a8478d83 (diff) | |
download | qt-creator-bb20672a630f183c4050e8340a4ff6e1f1519e71.tar.gz |
Actually propagate targetinformationchanged signal
* Fixes RunConfigurations not updating when changing something
in the BuildConfiguration.
Reviewed-by: dt
Diffstat (limited to 'src/plugins/qt4projectmanager/qt4target.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/qt4target.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/qt4projectmanager/qt4target.cpp b/src/plugins/qt4projectmanager/qt4target.cpp index 7eb7c60d21..4e439c0fa5 100644 --- a/src/plugins/qt4projectmanager/qt4target.cpp +++ b/src/plugins/qt4projectmanager/qt4target.cpp @@ -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())) { |