diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2011-08-05 13:13:17 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-08-05 14:07:15 +0200 |
commit | c7f6c06dcba97559bd504d6d0ce0d18dd79e1fa0 (patch) | |
tree | b15cf71598e182a263a2895ba9226c988927a2ed /src/plugins/cppeditor/cppplugin.cpp | |
parent | 0cd76d4b1f9412bc2e77a9efac01b47a5d62101a (diff) | |
download | qt-creator-c7f6c06dcba97559bd504d6d0ce0d18dd79e1fa0.tar.gz |
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>
Diffstat (limited to 'src/plugins/cppeditor/cppplugin.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppplugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp index c35b5272c9..eb4bb5d429 100644 --- a/src/plugins/cppeditor/cppplugin.cpp +++ b/src/plugins/cppeditor/cppplugin.cpp @@ -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); |