OSDN Git Service

RemoteLinux: Make deploy step widget detect more possible changes.
authorChristian Kandeler <christian.kandeler@nokia.com>
Wed, 3 Aug 2011 14:51:00 +0000 (16:51 +0200)
committerChristian Kandeler <christian.kandeler@nokia.com>
Wed, 3 Aug 2011 14:52:34 +0000 (16:52 +0200)
Change-Id: Ic90669ea06088e6c99f2db81627363b5ecf52c80
Reviewed-on: http://codereview.qt.nokia.com/2580
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
src/plugins/remotelinux/remotelinuxdeploystepwidget.cpp

index 5c07e34..6dbb7fc 100644 (file)
 #include "remotelinuxutils.h"
 
 #include <projectexplorer/target.h>
+#include <qt4projectmanager/qt4project.h>
 
 using namespace ProjectExplorer;
+using namespace Qt4ProjectManager;
 
 namespace RemoteLinux {
 using namespace Internal;
@@ -53,8 +55,8 @@ RemoteLinuxDeployStepWidget::RemoteLinuxDeployStepWidget(AbstractRemoteLinuxDepl
         SLOT(handleStepToBeRemoved(int)));
 
     // TODO: Move this knowledge into the deploy step itself.
-    connect(m_step->target(),
-        SIGNAL(activeBuildConfigurationChanged(ProjectExplorer::BuildConfiguration*)),
+    connect(qobject_cast<Qt4Project *>(m_step->target()->project()),
+        SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *, bool, bool)),
         SIGNAL(updateSummary()));
     connect(m_step->deployConfiguration(), SIGNAL(currentDeviceConfigurationChanged()),
         SIGNAL(updateSummary()));