forked from qt-creator/qt-creator
		
	Add "Switch Header/Source" action to the context menu
Task-number: QTCREATORBUG-5324 Change-Id: I137c9430e538714684ff6000ea68340a6f802615 Reviewed-on: http://codereview.qt.nokia.com/2688 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user