aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2013-10-11 12:58:24 +0200
committerhjk <[email protected]>2013-10-11 13:40:53 +0200
commita527fbe91cc4c82477a845be020417a86b5972a7 (patch)
tree53907a80926e59b16b4e57221e60cbc3b7bf0cc2 /src/plugins/debugger/debuggerplugin.cpp
parent8f28a37d717aaedecd9a46c38dddeee1adbd3b1b (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 6e4606e8842..5bbf72ac2b6 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -94,8 +94,6 @@
#include <projectexplorer/session.h>
#include <projectexplorer/target.h>
-#include <android/androidconstants.h>
-
#include <texteditor/basetexteditor.h>
#include <texteditor/fontsettings.h>
#include <texteditor/texteditorsettings.h>
@@ -1752,12 +1750,7 @@ void DebuggerPluginPrivate::attachToQmlPort()
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.qmlServerAddress = QLatin1String("localhost");
- } else {
- sp.qmlServerAddress = sp.connParams.host;
- }
+ sp.qmlServerAddress = device->qmlProfilerHost();
}
sp.qmlServerPort = dlg.port();
sp.startMode = AttachToRemoteProcess;