Commit c7f6c06d authored by Jarek Kobus's avatar Jarek Kobus Committed by Jarek Kobus

Add "Switch Header/Source" action to the context menu

Task-number: QTCREATORBUG-5324

Change-Id: I137c9430e538714684ff6000ea68340a6f802615
Reviewed-on: http://codereview.qt.nokia.com/2688Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@nokia.com>
parent 0cd76d4b
......@@ -243,6 +243,9 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
Core::Command *cmd;
Core::ActionContainer *cppToolsMenu = am->actionContainer(Core::Id(CppTools::Constants::M_TOOLS_CPP));
cmd = am->command(Core::Id(CppTools::Constants::SWITCH_HEADER_SOURCE));
contextMenu->addAction(cmd);
QAction *jumpToDefinition = new QAction(tr("Follow Symbol Under Cursor"), this);
cmd = am->registerAction(jumpToDefinition,
Constants::JUMP_TO_DEFINITION, context, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment