Add standard shortcut for print action.

Also update Visual Studio keyboard scheme. Xcode already had a proper
key binding.

Reviewed-by: con
This commit is contained in:
Daniel Molkentin
2010-04-27 10:48:13 +02:00
parent 18fcfeb16c
commit bbfe7bad3d
2 changed files with 2 additions and 1 deletions

View File

@@ -127,7 +127,7 @@
<key value="Ctrl+Shift+S" />
</shortcut>
<shortcut id="QtCreator.Print" >
<key value="" />
<key value="Ctrl+P" />
</shortcut>
<shortcut id="QtCreator.Exit" >
<key value="Ctrl+Q" />

View File

@@ -603,6 +603,7 @@ void MainWindow::registerDefaultActions()
icon = QIcon::fromTheme(QLatin1String("document-print"));
tmpaction = new QAction(icon, tr("&Print..."), this);
cmd = am->registerAction(tmpaction, Constants::PRINT, m_globalContext);
cmd->setDefaultKeySequence(QKeySequence::Print);
mfile->addAction(cmd, Constants::G_FILE_PRINT);
// Exit Action