QuickToolbar: fix keyboard shortcut for OS X

Apple + Alt + Space is a reserved key at least on OS X 10.5.

Task-number: QTCREATORBUG-2628
Done-with:  Lasse Holmstedt
Reviewed-by:  Lasse Holmstedt
This commit is contained in:
Thomas Hartmann
2010-10-12 11:19:01 +02:00
parent 403364018a
commit 3381c12cd5

View File

@@ -173,7 +173,11 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
QAction *showQuickToolbar = new QAction(tr("Show Qt Quick Toolbar"), this);
cmd = am->registerAction(showQuickToolbar, Constants::SHOW_QT_QUICK_HELPER, context);
#ifdef Q_WS_MACX
cmd->setDefaultKeySequence(QKeySequence(Qt::META + Qt::ALT + Qt::Key_Space));
#else
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_Space));
#endif
connect(showQuickToolbar, SIGNAL(triggered()), this, SLOT(showContextPane()));
contextMenu->addAction(cmd);
qmlToolsMenu->addAction(cmd);