summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-06-22 13:53:21 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-06-28 11:43:08 +0000
commitc0c210cbda26792ab1978f5dad45b17fc0ca4eb0 (patch)
treef1c216cb866f802197a330680cc9533922ddc246 /src/plugins/cmakeprojectmanager
parentf5d68398d51116bb8dc61e8699dd607076862d96 (diff)
downloadqt-creator-c0c210cbda26792ab1978f5dad45b17fc0ca4eb0.tar.gz
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>
Diffstat (limited to 'src/plugins/cmakeprojectmanager')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildstep.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
index 4bc51dd42e..c5f1b6a8f3 100644
--- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
@@ -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;