diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-12 15:48:59 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-12 15:54:50 +0100 |
commit | c9d49ab7e2f83c498623249b3d9c46cf5f111e02 (patch) | |
tree | 3d868321b2303ddc7411b1e51c3a0ce7302e4700 | |
parent | d151493acca99cae5a1a583ca0f8b6d9d5d7e5b9 (diff) | |
download | qt-creator-c9d49ab7e2f83c498623249b3d9c46cf5f111e02.tar.gz |
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
-rw-r--r-- | src/plugins/coreplugin/editormanager/editormanager.cpp | 4 | ||||
-rw-r--r-- | src/plugins/coreplugin/mainwindow.cpp | 4 | ||||
-rw-r--r-- | 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 39271a2167..fe675b910b 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 e7b8e7fa54..ee3f214db4 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 e0c5b18449..ca6103d154 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())); |