aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/callgrindtool.cpp
diff options
context:
space:
mode:
authorNicolas Arnaud-Cormos <[email protected]>2011-12-27 22:41:31 +0100
committerhjk <[email protected]>2011-12-28 18:25:56 +0100
commit4a8432112aacfb5ee25b5514c35d16e657eb2c8d (patch)
tree881a684a150a2bcbf14bf6f75a1248e186e6300d /src/plugins/valgrind/callgrindtool.cpp
parent26ae954fae7d112fd26f39fc5fdde25f3add2674 (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.cpp')
-rw-r--r--src/plugins/valgrind/callgrindtool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp
index 904e1da3325..74c1e027d9f 100644
--- a/src/plugins/valgrind/callgrindtool.cpp
+++ b/src/plugins/valgrind/callgrindtool.cpp
@@ -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"));