From c9d49ab7e2f83c498623249b3d9c46cf5f111e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= <thorbjorn.lindeijer@nokia.com> Date: Thu, 12 Nov 2009 15:48:59 +0100 Subject: [PATCH] Fixed a bunch of accelerator keys in the File menu There were three missing and one duplicate. Committed to master since 1.3 is currently in a hard string freeze. Task-number: QTCREATORBUG-261 Task-number: QTCREATORBUG-262 Task-number: QTCREATORBUG-263 Task-number: QTCREATORBUG-264 --- src/plugins/coreplugin/editormanager/editormanager.cpp | 4 ++-- src/plugins/coreplugin/mainwindow.cpp | 4 ++-- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 39271a21675..fe675b910b9 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -385,7 +385,7 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) : cmd->setDefaultKeySequence(QKeySequence(tr("Alt+V,Alt+I"))); advancedMenu->addAction(cmd, Constants::G_EDIT_EDITOR); connect(m_d->m_openInExternalEditorAction, SIGNAL(triggered()), this, SLOT(openInExternalEditor())); - + // Connect to VariableManager for CURRENT_DOCUMENT variable setting VariableManager *vm = VariableManager::instance(); connect(this, SIGNAL(currentEditorChanged(Core::IEditor *)), @@ -1472,7 +1472,7 @@ void EditorManager::updateActions() QString quotedName; if (!fName.isEmpty()) quotedName = '"' + fName + '"'; - m_d->m_saveAsAction->setText(tr("Save %1 As...").arg(quotedName)); + m_d->m_saveAsAction->setText(tr("Save %1 &As...").arg(quotedName)); m_d->m_saveAction->setText(tr("&Save %1").arg(quotedName)); m_d->m_revertToSavedAction->setText(tr("Revert %1 to Saved").arg(quotedName)); diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index e7b8e7fa544..ee3f214db44 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -575,7 +575,7 @@ void MainWindow::registerDefaultActions() connect(m_openAction, SIGNAL(triggered()), this, SLOT(openFile())); // Open With Action - m_openWithAction = new QAction(tr("&Open File With..."), this); + m_openWithAction = new QAction(tr("Open File &With..."), this); cmd = am->registerAction(m_openWithAction, Constants::OPEN_WITH, m_globalContext); mfile->addAction(cmd, Constants::G_FILE_OPEN); connect(m_openWithAction, SIGNAL(triggered()), this, SLOT(openFileWith())); @@ -583,7 +583,7 @@ void MainWindow::registerDefaultActions() // File->Recent Files Menu ActionContainer *ac = am->createMenu(Constants::M_FILE_RECENTFILES); mfile->addMenu(ac, Constants::G_FILE_OPEN); - ac->menu()->setTitle(tr("Recent Files")); + ac->menu()->setTitle(tr("Recent &Files")); // Save Action QAction *tmpaction = new QAction(QIcon(Constants::ICON_SAVEFILE), tr("&Save"), this); diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index e0c5b18449b..ca6103d1543 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -505,7 +505,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er // recent projects menu Core::ActionContainer *mrecent = am->createMenu(Constants::M_RECENTPROJECTS); - mrecent->menu()->setTitle(tr("Recent Projects")); + mrecent->menu()->setTitle(tr("Recent P&rojects")); mfile->addMenu(mrecent, Core::Constants::G_FILE_OPEN); connect(mfile->menu(), SIGNAL(aboutToShow()), this, SLOT(updateRecentProjectMenu())); -- GitLab