forked from qt-creator/qt-creator
CMake: Use tr in BuildStep
Its a QObject, no need for QCoreApplication::translate here. Change-Id: I3375a70fe60b66e13de6b9a99c35c85f82b9151e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -193,9 +193,8 @@ bool CMakeBuildStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
CMakeTool *tool = CMakeKitInformation::cmakeTool(target()->kit());
|
||||
if (!tool || !tool->isValid()) {
|
||||
emit addTask(Task(Task::Error,
|
||||
QCoreApplication::translate("CMakeProjectManager::CMakeBuildStep",
|
||||
"Qt Creator needs a CMake Tool set up to build. "
|
||||
"Configure a CMake Tool in the kit options."),
|
||||
tr("Qt Creator needs a CMake Tool set up to build. "
|
||||
"Configure a CMake Tool in the kit options."),
|
||||
Utils::FileName(), -1,
|
||||
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM));
|
||||
canInit = false;
|
||||
|
Reference in New Issue
Block a user