forked from qt-creator/qt-creator
QmlProfiler: Don't store runConfiguration needlessly
Change-Id: Ie63ef0b1e2989c58de7d9bf92fa3cbc100608512 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
@@ -110,7 +110,6 @@ public:
|
|||||||
|
|
||||||
QmlProfilerViewManager *m_viewContainer;
|
QmlProfilerViewManager *m_viewContainer;
|
||||||
Utils::FileInProjectFinder m_projectFinder;
|
Utils::FileInProjectFinder m_projectFinder;
|
||||||
RunConfiguration *m_runConfiguration;
|
|
||||||
QToolButton *m_recordButton;
|
QToolButton *m_recordButton;
|
||||||
QToolButton *m_clearButton;
|
QToolButton *m_clearButton;
|
||||||
|
|
||||||
@@ -131,7 +130,6 @@ QmlProfilerTool::QmlProfilerTool(QObject *parent)
|
|||||||
|
|
||||||
d->m_profilerState = 0;
|
d->m_profilerState = 0;
|
||||||
d->m_viewContainer = 0;
|
d->m_viewContainer = 0;
|
||||||
d->m_runConfiguration = 0;
|
|
||||||
|
|
||||||
qmlRegisterType<QmlProfilerCanvas>("Monitor", 1, 0, "Canvas2D");
|
qmlRegisterType<QmlProfilerCanvas>("Monitor", 1, 0, "Canvas2D");
|
||||||
qmlRegisterType<Context2D>();
|
qmlRegisterType<Context2D>();
|
||||||
@@ -257,15 +255,13 @@ IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp
|
|||||||
if (isTcpConnection)
|
if (isTcpConnection)
|
||||||
d->m_profilerConnections->setTcpConnection(sp.analyzerHost, sp.analyzerPort);
|
d->m_profilerConnections->setTcpConnection(sp.analyzerHost, sp.analyzerPort);
|
||||||
|
|
||||||
d->m_runConfiguration = runConfiguration;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialize m_projectFinder
|
// Initialize m_projectFinder
|
||||||
//
|
//
|
||||||
|
|
||||||
QString projectDirectory;
|
QString projectDirectory;
|
||||||
if (d->m_runConfiguration) {
|
if (runConfiguration) {
|
||||||
Project *project = d->m_runConfiguration->target()->project();
|
Project *project = runConfiguration->target()->project();
|
||||||
projectDirectory = project->projectDirectory();
|
projectDirectory = project->projectDirectory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user