forked from qt-creator/qt-creator
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user