forked from qt-creator/qt-creator
Core: Tr::tr
Change-Id: I0064814b0689f0f65072d2b0f60e26162587fd54 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -3,16 +3,15 @@
|
||||
|
||||
#include "modemanager.h"
|
||||
|
||||
#include "fancytabwidget.h"
|
||||
#include "actionmanager/actionmanager.h"
|
||||
#include "actionmanager/command.h"
|
||||
#include "coreplugintr.h"
|
||||
#include "fancyactionbar.h"
|
||||
#include "fancytabwidget.h"
|
||||
#include "icore.h"
|
||||
#include "imode.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/command.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/imode.h>
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
@@ -214,7 +213,7 @@ void ModeManagerPrivate::appendMode(IMode *mode)
|
||||
|
||||
// Register mode shortcut
|
||||
const Id actionId = mode->id().withPrefix("QtCreator.Mode.");
|
||||
QAction *action = new QAction(ModeManager::tr("Switch to <b>%1</b> mode").arg(mode->displayName()), m_instance);
|
||||
QAction *action = new QAction(Tr::tr("Switch to <b>%1</b> mode").arg(mode->displayName()), m_instance);
|
||||
Command *cmd = ActionManager::registerAction(action, actionId);
|
||||
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? QString("Meta+%1").arg(index + 1)
|
||||
: QString("Ctrl+%1").arg(index + 1)));
|
||||
|
||||
Reference in New Issue
Block a user