summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolsplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-04-25 20:24:06 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2013-04-26 10:31:11 +0200
commit28ec7caa7b5593e986799c355a02d330256c6f61 (patch)
tree76be0d6d2891c0c06377ae585e8d3732f2a8b043 /src/plugins/cpptools/cpptoolsplugin.cpp
parent52825a91f9a040a5ac29f5f367f75eb52a5b367a (diff)
downloadqt-creator-28ec7caa7b5593e986799c355a02d330256c6f61.tar.gz
Correct some default shortcuts for Mac
This makes them align to the other "editor split" shortcuts. Change-Id: I0b300ae495ffa17062a0a52b148f61015b965c29 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp
index 4549f9c467..e8f1a46c84 100644
--- a/src/plugins/cpptools/cpptoolsplugin.cpp
+++ b/src/plugins/cpptools/cpptoolsplugin.cpp
@@ -49,6 +49,7 @@
#include <coreplugin/vcsmanager.h>
#include <cppeditor/cppeditorconstants.h>
+#include <utils/hostosinfo.h>
#include <utils/qtcassert.h>
#include <QtPlugin>
@@ -127,7 +128,9 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
QAction *openInNextSplitAction = new QAction(tr("Open Corresponding Header/Source in Next Split"), this);
command = Core::ActionManager::registerAction(openInNextSplitAction, Constants::OPEN_HEADER_SOURCE_IN_NEXT_SPLIT, context, true);
- command->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::Key_E, Qt::Key_F4));
+ command->setDefaultKeySequence(QKeySequence(Utils::HostOsInfo::isMacHost()
+ ? tr("Meta+E, F4")
+ : tr("Ctrl+E, F4")));
mcpptools->addAction(command);
connect(openInNextSplitAction, SIGNAL(triggered()), this, SLOT(switchHeaderSourceInNextSplit()));