forked from qt-creator/qt-creator
IDevice: Add a qmlProfilerHost function
This seems to be a better abstraction than the "pseudo dynamic cast" in the QmlProfilerTool and the DebuggerPlugin itself. Change-Id: If7dea70e1353852ebb6d3ce43220c0b03ccb4b00 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
@@ -57,8 +57,6 @@
|
||||
#include <projectexplorer/localapplicationrunconfiguration.h>
|
||||
#include <texteditor/itexteditor.h>
|
||||
|
||||
#include <android/androidconstants.h>
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -431,12 +429,7 @@ static void startRemoteTool(IAnalyzerTool *tool, StartMode mode)
|
||||
IDevice::ConstPtr device = DeviceKitInformation::device(kit);
|
||||
if (device) {
|
||||
sp.connParams = device->sshParameters();
|
||||
if (device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE
|
||||
|| device->type() == Android::Constants::ANDROID_DEVICE_TYPE) {
|
||||
sp.analyzerHost = QLatin1String("localhost");
|
||||
} else {
|
||||
sp.analyzerHost = sp.connParams.host;
|
||||
}
|
||||
sp.analyzerHost = device->qmlProfilerHost();
|
||||
}
|
||||
sp.sysroot = SysRootKitInformation::sysRoot(kit).toString();
|
||||
sp.analyzerPort = port;
|
||||
|
Reference in New Issue
Block a user