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:
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "commandmappings.h"
|
||||
#include "commandsfile.h"
|
||||
|
||||
#include <coreplugin/coreplugintr.h>
|
||||
#include <coreplugin/dialogs/shortcutsettings.h>
|
||||
|
||||
#include <utils/headerviewstretcher.h>
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
: q(parent)
|
||||
{
|
||||
groupBox = new QGroupBox(parent);
|
||||
groupBox->setTitle(CommandMappings::tr("Command Mappings"));
|
||||
groupBox->setTitle(::Core::Tr::tr("Command Mappings"));
|
||||
|
||||
filterEdit = new FancyLineEdit(groupBox);
|
||||
filterEdit->setFiltering(true);
|
||||
@@ -45,19 +45,19 @@ public:
|
||||
commandList->setColumnCount(3);
|
||||
|
||||
QTreeWidgetItem *item = commandList->headerItem();
|
||||
item->setText(2, CommandMappings::tr("Target"));
|
||||
item->setText(1, CommandMappings::tr("Label"));
|
||||
item->setText(0, CommandMappings::tr("Command"));
|
||||
item->setText(2, ::Core::Tr::tr("Target"));
|
||||
item->setText(1, ::Core::Tr::tr("Label"));
|
||||
item->setText(0, ::Core::Tr::tr("Command"));
|
||||
|
||||
defaultButton = new QPushButton(CommandMappings::tr("Reset All"), groupBox);
|
||||
defaultButton->setToolTip(CommandMappings::tr("Reset all to default."));
|
||||
defaultButton = new QPushButton(::Core::Tr::tr("Reset All"), groupBox);
|
||||
defaultButton->setToolTip(::Core::Tr::tr("Reset all to default."));
|
||||
|
||||
resetButton = new QPushButton(CommandMappings::tr("Reset"), groupBox);
|
||||
resetButton->setToolTip(CommandMappings::tr("Reset to default."));
|
||||
resetButton = new QPushButton(::Core::Tr::tr("Reset"), groupBox);
|
||||
resetButton->setToolTip(::Core::Tr::tr("Reset to default."));
|
||||
resetButton->setVisible(false);
|
||||
|
||||
importButton = new QPushButton(CommandMappings::tr("Import..."), groupBox);
|
||||
exportButton = new QPushButton(CommandMappings::tr("Export..."), groupBox);
|
||||
importButton = new QPushButton(::Core::Tr::tr("Import..."), groupBox);
|
||||
exportButton = new QPushButton(::Core::Tr::tr("Export..."), groupBox);
|
||||
|
||||
auto hboxLayout1 = new QHBoxLayout();
|
||||
hboxLayout1->addWidget(defaultButton);
|
||||
@@ -147,7 +147,7 @@ void CommandMappings::setPageTitle(const QString &s)
|
||||
|
||||
void CommandMappings::setTargetHeader(const QString &s)
|
||||
{
|
||||
d->commandList->setHeaderLabels({tr("Command"), tr("Label"), s});
|
||||
d->commandList->setHeaderLabels({::Core::Tr::tr("Command"), ::Core::Tr::tr("Label"), s});
|
||||
}
|
||||
|
||||
void CommandMappings::filterChanged(const QString &f)
|
||||
|
||||
Reference in New Issue
Block a user