forked from qt-creator/qt-creator
		
	analyzer: move responsibility for run modes to individual tools
Change-Id: Iaf2fa9d4c087470649336a453c6a9a7db12d220f Reviewed-on: http://codereview.qt.nokia.com/1051 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
		@@ -45,16 +45,15 @@ using namespace QmlProfiler::Internal;
 | 
			
		||||
 | 
			
		||||
bool QmlProfilerPlugin::debugOutput = false;
 | 
			
		||||
 | 
			
		||||
QmlProfilerPlugin::QmlProfilerPlugin()
 | 
			
		||||
{}
 | 
			
		||||
 | 
			
		||||
bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorString)
 | 
			
		||||
{
 | 
			
		||||
    Q_UNUSED(arguments)
 | 
			
		||||
    Q_UNUSED(errorString)
 | 
			
		||||
    addAutoReleasedObject(new QmlProjectAnalyzerRunControlFactory());
 | 
			
		||||
    AnalyzerManager::addTool(new QmlProfilerTool(true, this));
 | 
			
		||||
    AnalyzerManager::addTool(new QmlProfilerTool(false, this));
 | 
			
		||||
    StartModes modes;
 | 
			
		||||
    modes.append(StartMode(StartLocal));
 | 
			
		||||
    modes.append(StartMode(StartRemote));
 | 
			
		||||
    AnalyzerManager::addTool(new QmlProfilerTool(this), modes);
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user