diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp index 1b0edfeef42..6f2d4ae04d9 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp @@ -40,11 +40,13 @@ #include #include +#include #include #include #include #include +#include #include @@ -112,12 +114,12 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat sp.displayName = rc3->displayName(); } else if (Qt4ProjectManager::S60DeviceRunConfiguration *rc4 = qobject_cast(runConfiguration)) { - //sp.environment = rc4->environment(); - //sp.workingDirectory = rc4->workingDirectory(); - //sp.debuggee = rc4->executable(); + Qt4ProjectManager::S60DeployConfiguration *deployConf = + qobject_cast(runConfiguration->target()->activeDeployConfiguration()); + sp.debuggeeArgs = rc4->commandLineArguments(); sp.displayName = rc4->displayName(); - sp.connParams.host = QLatin1String("localhost"); + sp.connParams.host = deployConf->deviceAddress(); sp.connParams.port = rc4->qmlDebugServerPort(); } else { // What could that be?