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: default avatarQt Sanity Bot <>
Reviewed-by: default avatarLeandro T. C. Melo <>
Reviewed-by: default avatarJarek Kobus <>
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));
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