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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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