forked from qt-creator/qt-creator
		
	Analyzer: create a run control factory for all tools.
Having one factory per tool (or plugin) created some bugs: * analyzer project settings being created twice * per-project analyzer settings widget duplicated Also, most of the code from the run control factory were copied. Now, the Analyzer only creates one run control factory shared among all tools, and the IAnalyzerTool has two new virtual method: canRun and createStartParameters. It simplify the code a bit, and creating a new analyzer tool is easier (only two classes to subclass: IAnalyzerTool and IAnalyzerEngine). Change-Id: I4e180846a26b74b2b77cb99bc97534d680a80a4d Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
		
				
					committed by
					
						 hjk
						hjk
					
				
			
			
				
	
			
			
			
						parent
						
							26ae954fae
						
					
				
				
					commit
					4a8432112a
				
			| @@ -497,7 +497,7 @@ static QToolButton *createToolButton(QAction *action) | ||||
| } | ||||
|  | ||||
| CallgrindTool::CallgrindTool(QObject *parent) | ||||
|     : Analyzer::IAnalyzerTool(parent) | ||||
|     : ValgrindTool(parent) | ||||
| { | ||||
|     d = new CallgrindToolPrivate(this); | ||||
|     setObjectName(QLatin1String("CallgrindTool")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user