forked from qt-creator/qt-creator
QmlProfiler: Fix profiling Symbian apps over WLAN
Use IP address from deploy configuration, not localhost Change-Id: I1a5fcf6dc07a0d98404fdfb3a230c04f4062a57e Reviewed-on: http://codereview.qt.nokia.com/2268 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
@@ -40,11 +40,13 @@
|
|||||||
|
|
||||||
#include <projectexplorer/applicationrunconfiguration.h>
|
#include <projectexplorer/applicationrunconfiguration.h>
|
||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
|
#include <projectexplorer/target.h>
|
||||||
|
|
||||||
#include <remotelinux/linuxdeviceconfiguration.h>
|
#include <remotelinux/linuxdeviceconfiguration.h>
|
||||||
#include <remotelinux/remotelinuxrunconfiguration.h>
|
#include <remotelinux/remotelinuxrunconfiguration.h>
|
||||||
#include <qt4projectmanager/qt-s60/s60devicedebugruncontrol.h>
|
#include <qt4projectmanager/qt-s60/s60devicedebugruncontrol.h>
|
||||||
#include <qt4projectmanager/qt-s60/s60devicerunconfiguration.h>
|
#include <qt4projectmanager/qt-s60/s60devicerunconfiguration.h>
|
||||||
|
#include <qt4projectmanager/qt-s60/s60deployconfiguration.h>
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
@@ -112,12 +114,12 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat
|
|||||||
sp.displayName = rc3->displayName();
|
sp.displayName = rc3->displayName();
|
||||||
} else if (Qt4ProjectManager::S60DeviceRunConfiguration *rc4 =
|
} else if (Qt4ProjectManager::S60DeviceRunConfiguration *rc4 =
|
||||||
qobject_cast<Qt4ProjectManager::S60DeviceRunConfiguration *>(runConfiguration)) {
|
qobject_cast<Qt4ProjectManager::S60DeviceRunConfiguration *>(runConfiguration)) {
|
||||||
//sp.environment = rc4->environment();
|
Qt4ProjectManager::S60DeployConfiguration *deployConf =
|
||||||
//sp.workingDirectory = rc4->workingDirectory();
|
qobject_cast<Qt4ProjectManager::S60DeployConfiguration *>(runConfiguration->target()->activeDeployConfiguration());
|
||||||
//sp.debuggee = rc4->executable();
|
|
||||||
sp.debuggeeArgs = rc4->commandLineArguments();
|
sp.debuggeeArgs = rc4->commandLineArguments();
|
||||||
sp.displayName = rc4->displayName();
|
sp.displayName = rc4->displayName();
|
||||||
sp.connParams.host = QLatin1String("localhost");
|
sp.connParams.host = deployConf->deviceAddress();
|
||||||
sp.connParams.port = rc4->qmlDebugServerPort();
|
sp.connParams.port = rc4->qmlDebugServerPort();
|
||||||
} else {
|
} else {
|
||||||
// What could that be?
|
// What could that be?
|
||||||
|
|||||||
Reference in New Issue
Block a user