diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-07 22:46:35 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-08 08:32:42 +0000 |
commit | 9db70d8810dbee8c3b54e4d69f9dfcee27f90259 (patch) | |
tree | df271ab90654d433b1ecc690db4ee3ee6acccb73 /src/plugins/debugger/qml/qmlengine.cpp | |
parent | 2356f28647c04718919a090a4784c9453cd0c02a (diff) | |
download | qt-creator-9db70d8810dbee8c3b54e4d69f9dfcee27f90259.tar.gz |
Translations: Fix stray QApplication::translate() calls
For references to the module-own context, use Tr::tr().
For references to other modules, use the right context name (with "::"
prefix).
Change-Id: I6dce8f1ceccb23c44d93f1826402cd3be8e98e5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 1e7c6c6c67..204d6c4437 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -1079,7 +1079,7 @@ void QmlEnginePrivate::updateScriptSource(const QString &fileName, int lineOffse } //update open editors - QString titlePattern = QCoreApplication::translate("QmlEngine", "JS Source for %1").arg(fileName); + QString titlePattern = Tr::tr("JS Source for %1").arg(fileName); //Check if there are open editors with the same title const QList<IDocument *> documents = DocumentModel::openedDocuments(); for (IDocument *doc: documents) { @@ -2044,7 +2044,7 @@ StackFrame QmlEnginePrivate::extractStackFrame(const QVariant &bodyVal) stackFrame.function = extractString(body.value("func")); if (stackFrame.function.isEmpty()) - stackFrame.function = QCoreApplication::translate("QmlEngine", "Anonymous Function"); + stackFrame.function = Tr::tr("Anonymous Function"); stackFrame.file = FilePath::fromString( engine->toFileInProject(extractString(body.value("script")))); stackFrame.usable = stackFrame.file.isReadableFile(); |