forked from qt-creator/qt-creator
IAnalyzerTool: actionId() is re-implemented in derived classes
Change-Id: I5a0a485e239eeb33a9d8ad8cfd0f9cc40e1ff6d2 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -535,6 +535,11 @@ QString CallgrindTool::description() const
|
||||
"record function calls when a program runs.");
|
||||
}
|
||||
|
||||
Core::Id CallgrindTool::actionId(StartMode mode) const
|
||||
{
|
||||
return mode == StartLocal ? "Analyzer.Callgrind.Local" : "Analyzer.Callgrind.Remote";
|
||||
}
|
||||
|
||||
IAnalyzerTool::ToolMode CallgrindTool::toolMode() const
|
||||
{
|
||||
return ReleaseMode;
|
||||
|
||||
@@ -49,6 +49,7 @@ public:
|
||||
ProjectExplorer::RunMode runMode() const;
|
||||
QString displayName() const;
|
||||
QString description() const;
|
||||
Core::Id actionId(Analyzer::StartMode mode) const;
|
||||
ToolMode toolMode() const;
|
||||
|
||||
void extensionsInitialized();
|
||||
|
||||
@@ -297,6 +297,11 @@ QString MemcheckTool::description() const
|
||||
"memory leaks");
|
||||
}
|
||||
|
||||
Core::Id MemcheckTool::actionId(StartMode mode) const
|
||||
{
|
||||
return mode == StartLocal ? "Analyzer.Memcheck.Local" : "Analyzer.Memcheck.Remote";
|
||||
}
|
||||
|
||||
AbstractAnalyzerSubConfig *MemcheckTool::createGlobalSettings()
|
||||
{
|
||||
return new ValgrindGlobalSettings();
|
||||
|
||||
@@ -88,6 +88,7 @@ public:
|
||||
ProjectExplorer::RunMode runMode() const;
|
||||
QString displayName() const;
|
||||
QString description() const;
|
||||
Core::Id actionId(Analyzer::StartMode mode) const;
|
||||
|
||||
// Create the valgrind settings (for all valgrind tools)
|
||||
Analyzer::AbstractAnalyzerSubConfig *createGlobalSettings();
|
||||
|
||||
Reference in New Issue
Block a user