forked from qt-creator/qt-creator
Translations: Remove header includes of *tr.h in .h files
The wrong Tr::tr could be executed by code indirectly including a *tr.h file from another module. To Translate in a header file, use QCoreApplication::tr(). Change-Id: I30e67245991d2c2f0eeb01ab356555bdb9841af0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mesonprojectmanagertr.h"
|
||||
|
||||
#include <utils/parameteraction.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace MesonProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
@@ -14,8 +14,8 @@ class MesonActionsManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Utils::ParameterAction buildTargetContextAction{
|
||||
::MesonProjectManager::Tr::tr("Build"),
|
||||
::MesonProjectManager::Tr::tr("Build \"%1\""),
|
||||
QCoreApplication::tr("::MesonProjectManager", "Build"),
|
||||
QCoreApplication::tr("::MesonProjectManager", "Build \"%1\""),
|
||||
Utils::ParameterAction::AlwaysEnabled /*handled manually*/
|
||||
};
|
||||
QAction configureActionMenu;
|
||||
|
||||
Reference in New Issue
Block a user