diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-05-23 15:20:38 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-06-11 13:39:20 +0200 |
commit | b2e566662b7f15c3d67367c949a5e957b6e33228 (patch) | |
tree | 2b2e4ecd2467378bc8d65389b2cbde2c061a3e58 /src/plugins/cppeditor/cppplugin.cpp | |
parent | e129fcdc194bfbd04f7faadf85c5b030009023c7 (diff) | |
download | qt-creator-b2e566662b7f15c3d67367c949a5e957b6e33228.tar.gz |
Mac: Sanitize shortcuts.
Task-number: QTCREATORBUG-7446
Change-Id: Ibad8f06e5f65bc01dc9fca6e9d900e24c5fc55a1
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppplugin.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp index 7b3839be78..0e2fcbf48c 100644 --- a/src/plugins/cppeditor/cppplugin.cpp +++ b/src/plugins/cppeditor/cppplugin.cpp @@ -246,7 +246,7 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess m_openTypeHierarchyAction = new QAction(tr("Open Type Hierarchy"), this); cmd = Core::ActionManager::registerAction(m_openTypeHierarchyAction, Constants::OPEN_TYPE_HIERARCHY, context); - cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Shift+T"))); + cmd->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+Shift+T") : tr("Ctrl+Shift+T"))); connect(m_openTypeHierarchyAction, SIGNAL(triggered()), this, SLOT(openTypeHierarchy())); contextMenu->addAction(cmd); cppToolsMenu->addAction(cmd); |