diff options
author | Nicolas Arnaud-Cormos <[email protected]> | 2011-12-27 22:41:31 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2011-12-28 18:25:56 +0100 |
commit | 4a8432112aacfb5ee25b5514c35d16e657eb2c8d (patch) | |
tree | 881a684a150a2bcbf14bf6f75a1248e186e6300d /src/plugins/valgrind/callgrindtool.h | |
parent | 26ae954fae7d112fd26f39fc5fdde25f3add2674 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.h')
-rw-r--r-- | src/plugins/valgrind/callgrindtool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/valgrind/callgrindtool.h b/src/plugins/valgrind/callgrindtool.h index e6219e8caef..014caa8f8e3 100644 --- a/src/plugins/valgrind/callgrindtool.h +++ b/src/plugins/valgrind/callgrindtool.h @@ -33,14 +33,14 @@ #ifndef CALLGRINDTOOL_H #define CALLGRINDTOOL_H -#include <analyzerbase/ianalyzertool.h> +#include "valgrindtool.h" namespace Valgrind { namespace Internal { class CallgrindToolPrivate; -class CallgrindTool : public Analyzer::IAnalyzerTool +class CallgrindTool : public ValgrindTool { Q_OBJECT |