QmlProfiler: Add "Sysroot" field to attach dialog

Change-Id: Id3c6a0eaa90096f2a7a0bdcfac10644e10e8858c
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
Kai Koehne
2011-10-15 11:32:55 +02:00
parent 8eb8368139
commit f925ecb30f
5 changed files with 40 additions and 2 deletions

View File

@@ -120,6 +120,7 @@ public:
QString m_tcpHost;
quint64 m_tcpPort;
QString m_ostDevice;
QString m_sysroot;
};
QmlProfilerTool::QmlProfilerTool(QObject *parent)
@@ -254,6 +255,8 @@ IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp
connect(d->m_project, SIGNAL(fileListChanged()), this, SLOT(updateProjectFileList()));
}
d->m_projectFinder.setSysroot(sp.sysroot);
connect(engine, SIGNAL(processRunning(int)), this, SLOT(connectClient(int)));
connect(engine, SIGNAL(finished()), this, SLOT(disconnectClient()));
connect(engine, SIGNAL(finished()), this, SLOT(correctTimer()));
@@ -509,6 +512,7 @@ static void startRemoteTool(IAnalyzerTool *tool, StartMode mode)
sp.startMode = mode;
sp.connParams.host = dialog.address();
sp.connParams.port = dialog.port();
sp.sysroot = dialog.sysroot();
AnalyzerRunControl *rc = new AnalyzerRunControl(tool, sp, 0);
QObject::connect(AnalyzerManager::stopAction(), SIGNAL(triggered()), rc, SLOT(stopIt()));