forked from qt-creator/qt-creator
Port to new connect api
Change-Id: I873a36601d54065b61d0666558b93dc839ad0dfc Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -188,7 +188,8 @@ void ValgrindPlugin::extensionsInitialized()
|
||||
|
||||
QAction *action = new QAction(tr("Profile Costs of This Function and Its Callees"), this);
|
||||
action->setIcon(QIcon(QLatin1String(Analyzer::Constants::ANALYZER_CONTROL_START_ICON)));
|
||||
connect(action, SIGNAL(triggered()), m_callgrindTool, SLOT(handleShowCostsOfFunction()));
|
||||
connect(action, &QAction::triggered, m_callgrindTool,
|
||||
&CallgrindTool::handleShowCostsOfFunction);
|
||||
Command *cmd = ActionManager::registerAction(action, "Analyzer.Callgrind.ShowCostsOfFunction",
|
||||
analyzerContext);
|
||||
editorContextMenu->addAction(cmd);
|
||||
|
||||
Reference in New Issue
Block a user