QmlProjectManager: Tr::tr

Change-Id: I219111bab487ad5f2d7d1cd7ae6f3e3e8a2a8d3f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-01-19 15:36:40 +01:00
parent 16ec720537
commit 0fff2aa172
32 changed files with 171 additions and 842 deletions

View File

@@ -5,6 +5,7 @@
#include "qmlproject.h"
#include "qmlprojectmanagerconstants.h"
#include "qmlprojectmanagertr.h"
#include <qmljstools/qmljstoolsconstants.h>
@@ -29,7 +30,7 @@ using namespace Utils;
namespace QmlProjectManager {
const char M_CURRENT_FILE[] = "CurrentFile";
const char CURRENT_FILE[] = QT_TRANSLATE_NOOP("QmlManager", "<Current File>");
const char CURRENT_FILE[] = QT_TRANSLATE_NOOP("::QmlProjectManager", "<Current File>");
static bool caseInsensitiveLessThan(const QString &s1, const QString &s2)
{
@@ -66,7 +67,7 @@ void QmlMainFileAspect::addToLayout(LayoutBuilder &builder)
this, &QmlMainFileAspect::updateFileComboBox);
connect(m_fileListCombo, &QComboBox::activated, this, &QmlMainFileAspect::setMainScript);
builder.addItems({tr("Main QML file:"), m_fileListCombo.data()});
builder.addItems({Tr::tr("Main QML file:"), m_fileListCombo.data()});
}
void QmlMainFileAspect::toMap(QVariantMap &map) const