forked from qt-creator/qt-creator
Translations: Replace QCoreApplication::translate() with Tr::tr()
Calling <Module>::Tr::tr() is preferred over
QCoreApplication::translate("::<Module>", "..."). This changes
occurrences in .cpp files.
Change-Id: I3311ef0dbf3e7d105a3f181b6b988f3b444468f1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include <projectexplorer/kitmanager.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectexplorertr.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
#include <projectexplorer/toolchainmanager.h>
|
||||
@@ -976,7 +977,7 @@ public:
|
||||
m_log->setVisible(dockerDeviceLog().isDebugEnabled());
|
||||
|
||||
const QString fail = QString{"Docker: "}
|
||||
+ QCoreApplication::translate("::Debugger", "Process failed to start.");
|
||||
+ ::ProjectExplorer::Tr::tr("The process failed to start.");
|
||||
auto errorLabel = new Utils::InfoLabel(fail, Utils::InfoLabel::Error, this);
|
||||
errorLabel->setVisible(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user