Fix lupdate issues

Change-Id: I950d2f53fcc03ba447140f3c6957422ca40111b5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2020-07-17 10:02:09 +02:00
parent df0ffd8bb8
commit 32af4d9e70
8 changed files with 20 additions and 2 deletions

View File

@@ -29,6 +29,8 @@
#include <QVector>
#include <QWidget>
#include <QCoreApplication>
namespace TextEditor {
class TextEditorWidget;
}
@@ -40,6 +42,8 @@ class AndroidManifestEditorIconWidget;
class AndroidManifestEditorIconContainerWidget : public QWidget
{
Q_DECLARE_TR_FUNCTIONS(Android::Internal::AndroidManifestEditorIconContainerWidget)
public:
explicit AndroidManifestEditorIconContainerWidget(QWidget *parent,
TextEditor::TextEditorWidget *textEditorWidget);

View File

@@ -177,7 +177,7 @@ bool JLinkUvscAdapterOptions::operator==(const JLinkUvscAdapterOptions &other) c
JLinkUvscServerProvider::JLinkUvscServerProvider()
: UvscServerProvider(Constants::UVSC_JLINK_PROVIDER_ID)
{
setTypeDisplayName(tr("uVision JLink"));
setTypeDisplayName(UvscServerProvider::tr("uVision JLink"));
setConfigurationWidgetCreator([this] { return new JLinkUvscServerProviderConfigWidget(this); });
setSupportedDrivers({"Segger\\JL2CM3.dll"});
}

View File

@@ -27,11 +27,15 @@
#include <coreplugin/dialogs/ioptionspage.h>
#include <QCoreApplication>
namespace MesonProjectManager {
namespace Internal {
class MesonTools;
class GeneralSettingsPage final : public Core::IOptionsPage
{
Q_DECLARE_TR_FUNCTIONS(MesonProjectManager::Internal::GeneralSettingsPage)
public:
GeneralSettingsPage();
void saveAll();

View File

@@ -33,6 +33,8 @@ namespace MesonProjectManager {
namespace Internal {
class MesonToolKitAspect final : public ProjectExplorer::KitAspect
{
Q_DECLARE_TR_FUNCTIONS(MesonProjectManager::Internal::MesonToolKitAspect)
public:
MesonToolKitAspect();

View File

@@ -33,6 +33,8 @@ namespace MesonProjectManager {
namespace Internal {
class NinjaToolKitAspect final : public ProjectExplorer::KitAspect
{
Q_DECLARE_TR_FUNCTIONS(MesonProjectManager::Internal::NinjaToolKitAspect)
public:
NinjaToolKitAspect();

View File

@@ -27,11 +27,15 @@
#include <coreplugin/dialogs/ioptionspage.h>
#include <QCoreApplication>
namespace MesonProjectManager {
namespace Internal {
class MesonTools;
class ToolsSettingsPage final : public Core::IOptionsPage
{
Q_DECLARE_TR_FUNCTIONS(MesonProjectManager::Internal::ToolsSettingsPage)
public:
ToolsSettingsPage();
};

View File

@@ -435,7 +435,7 @@ void QmakeProjectManagerPluginPrivate::runQMakeImpl(Project *p, Node *node)
if (auto *profile = dynamic_cast<QmakeProFileNode *>(node))
bc->setSubNodeBuild(profile);
BuildManager::appendStep(qs, tr("QMake"));
BuildManager::appendStep(qs, QmakeProjectManagerPlugin::tr("QMake"));
bc->setSubNodeBuild(nullptr);
}

View File

@@ -38,6 +38,8 @@ class Project;
namespace QmlDesigner {
class FilePathModel : public QAbstractListModel
{
Q_DECLARE_TR_FUNCTIONS(QmlDesigner::FilePathModel)
public:
FilePathModel(ProjectExplorer::Project *project, QObject *parent = nullptr);
~FilePathModel() override;