QmlProfiler: Allow user to specify a sysroot for "Attach to Port"

Change-Id: I943255e5a501610195e3758f9fbb42d127f15524
Reviewed-on: http://codereview.qt-project.org/6451
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Kai Koehne
2011-10-11 15:21:00 +02:00
parent 7ed717ca62
commit 7dc88639dc
7 changed files with 76 additions and 15 deletions

View File

@@ -1673,14 +1673,20 @@ void DebuggerPluginPrivate::attachToQmlPort()
dlg.setPort(sp.qmlServerPort);
}
const QVariant sysrootPath = configValue(_("LastSysroot"));
if (sysrootPath.isValid())
dlg.setSysroot(sysrootPath.toString());
if (dlg.exec() != QDialog::Accepted)
return;
setConfigValue(_("LastQmlServerAddress"), dlg.host());
setConfigValue(_("LastQmlServerPort"), dlg.port());
setConfigValue(_("LastSysroot"), dlg.sysroot());
sp.qmlServerAddress = dlg.host();
sp.qmlServerPort = dlg.port();
sp.sysroot = dlg.sysroot();
sp.startMode = AttachToQmlPort;
if (RunControl *rc = createDebugger(sp))