aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/callgrindtool.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2012-06-05 14:22:20 +0200
committerhjk <[email protected]>2012-06-05 15:19:30 +0200
commitcdd44befff713e99018a92a78aea460504477dce (patch)
tree41c43f4db7a326370bc20a1c6e2707b8ccf36166 /src/plugins/valgrind/callgrindtool.cpp
parentd90264d6c2a7f9e53863de98145774727ea64e58 (diff)
Add ActionContainer::addSeparator(...)
Gets rid of a lot of code duplication. Change-Id: I2ce38fb38a0b61cb821e0bdc7bcc9a7ccdf9da72 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r--src/plugins/valgrind/callgrindtool.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp
index 1899acdd9f8..d2cf6d0280c 100644
--- a/src/plugins/valgrind/callgrindtool.cpp
+++ b/src/plugins/valgrind/callgrindtool.cpp
@@ -546,11 +546,7 @@ void CallgrindTool::extensionsInitialized()
QAction *action = 0;
Core::Command *cmd = 0;
- action = new QAction(this);
- action->setSeparator(true);
- cmd = Core::ActionManager::registerAction(action, "Analyzer.Callgrind.ContextMenu.Sep",
- analyzerContext);
- editorContextMenu->addAction(cmd);
+ editorContextMenu->addSeparator(analyzerContext);
action = new QAction(tr("Profile Costs of this Function and its Callees"), this);
action->setIcon(QIcon(Analyzer::Constants::ANALYZER_CONTROL_START_ICON));